Skip to content

Commit 0b33f3a

Browse files
committed
fix: typography min and max slider for rem
1 parent 3f4f8ec commit 0b33f3a

File tree

2 files changed

+4
-4
lines changed
  • src
    • block-components/typography
    • components/advanced-range-control

2 files changed

+4
-4
lines changed

src/block-components/typography/edit.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,9 @@ export const Controls = props => {
265265
allowReset={ true }
266266
attribute={ attributeName( 'fontSize' ) }
267267
units={ [ 'px', 'em', 'rem' ] }
268-
min={ [ 0, 0 ] }
269-
sliderMax={ [ 150, 7 ] }
270-
step={ [ 1, 0.05 ] }
268+
min={ [ 0, 0, 0 ] }
269+
sliderMax={ [ 150, 7, 7 ] }
270+
step={ [ 1, 0.05, 0.05 ] }
271271
placeholder={ props.sizePlaceholder }
272272
responsive="all"
273273
helpTooltip={ {

src/components/advanced-range-control/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ const AdvancedRangeControl = props => {
230230
variant="tertiary"
231231
onClick={ () => {
232232
// Set the value when changing from mark mode to custom
233-
if ( isMarkMode && rangeValue ) {
233+
if ( isMarkMode && rangeValue !== -1 ) {
234234
rangeOnChange( rangeValue, 'size' )
235235
}
236236
setIsMarkMode( ! isMarkMode )

0 commit comments

Comments
 (0)