mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
chore: wiring ControlLabel to a new FormLabel (#10388)
* chore: wiring ControlLabel to a new FormLabel Creating new simple <FormLabel /> component and wiring all <label> and react-bootstrap.ControlLabel towards it. FormLabel becomes a pivotal point that can be altered to point to AntD when we're ready. * lint * ViewportControl * addressing comments
This commit is contained in:
committed by
GitHub
parent
ea53916730
commit
b438ba9ed5
@@ -21,7 +21,8 @@ import PropTypes from 'prop-types';
|
||||
import { Popover, OverlayTrigger } from 'react-bootstrap';
|
||||
import { t } from '@superset-ui/translation';
|
||||
|
||||
import CopyToClipboard from './../../components/CopyToClipboard';
|
||||
import FormLabel from 'src/components/FormLabel';
|
||||
import CopyToClipboard from 'src/components/CopyToClipboard';
|
||||
import { getExploreLongUrl } from '../exploreUtils';
|
||||
|
||||
const propTypes = {
|
||||
@@ -97,9 +98,7 @@ export default class EmbedCodeButton extends React.Component {
|
||||
<div className="col-md-6 col-sm-12">
|
||||
<div className="form-group">
|
||||
<small>
|
||||
<label className="control-label" htmlFor="embed-height">
|
||||
{t('Height')}
|
||||
</label>
|
||||
<FormLabel htmlFor="embed-height">{t('Height')}</FormLabel>
|
||||
</small>
|
||||
<input
|
||||
className="form-control input-sm"
|
||||
@@ -113,9 +112,7 @@ export default class EmbedCodeButton extends React.Component {
|
||||
<div className="col-md-6 col-sm-12">
|
||||
<div className="form-group">
|
||||
<small>
|
||||
<label className="control-label" htmlFor="embed-width">
|
||||
{t('Width')}
|
||||
</label>
|
||||
<FormLabel htmlFor="embed-width">{t('Width')}</FormLabel>
|
||||
</small>
|
||||
<input
|
||||
className="form-control input-sm"
|
||||
|
||||
Reference in New Issue
Block a user