Skip to content

Commit d49cf5c

Browse files
authored
fix (font size control): removed unused code that interferes with string css var (#3510)
1 parent 639fe8b commit d49cf5c

File tree

1 file changed

+1
-6
lines changed
  • src/components/font-size-control

1 file changed

+1
-6
lines changed

src/components/font-size-control/index.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { __ } from '@wordpress/i18n'
1010
import { i18n } from 'stackable'
1111

1212
const FontSizeControl = props => {
13-
let passedPlaceholder = props.placeholder
13+
const passedPlaceholder = props.placeholder
1414

1515
const pxToEm = ( value = '', baseValue = 21 ) => {
1616
if ( value === '' ) {
@@ -28,11 +28,6 @@ const FontSizeControl = props => {
2828
return Math.round( parseFloat( value ) * baseValue )
2929
}
3030

31-
if ( typeof passedPlaceholder === 'string' ) {
32-
// Add a converted EM unit whenever the user changes the unit.
33-
passedPlaceholder = [ passedPlaceholder, pxToEm( passedPlaceholder ) ]
34-
}
35-
3631
return (
3732
<AdvancedRangeControl
3833
{ ...props }

0 commit comments

Comments
 (0)