Skip to content

Commit

Permalink
SpacingSizesControl: Fix white dot on thumb (#48574)
Browse files Browse the repository at this point in the history
* SpacingSizesControl: Fix white dot on thumb

* Update changelog
  • Loading branch information
t-hamano authored Feb 28, 2023
1 parent 2b39d98 commit 2a52f30
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions packages/block-editor/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Bug Fix

- `SpacingSizesControl`: fix white dot on thumb ([#48574](https://github.com/WordPress/gutenberg/pull/48574)).

## 11.4.0 (2023-02-15)

### Bug Fix
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
}
}

[class*="ThumbWrapper-thumbColor"] {
.components-range-control__thumb-wrapper {
z-index: 3;
}

Expand Down
6 changes: 5 additions & 1 deletion packages/components/src/range-control/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,11 @@ function UnforwardedRangeControl< IconProps = unknown >(
style={ { width: fillValueOffset } }
trackColor={ trackColor }
/>
<ThumbWrapper style={ offsetStyle } disabled={ disabled }>
<ThumbWrapper
className="components-range-control__thumb-wrapper"
style={ offsetStyle }
disabled={ disabled }
>
<Thumb
aria-hidden={ true }
isFocused={ isThumbFocused }
Expand Down

0 comments on commit 2a52f30

Please sign in to comment.