Skip to content

Commit

Permalink
RangeControl: Fix space between icons and rail (#36935)
Browse files Browse the repository at this point in the history
* style fix - space between icons and rail

Space between beforeIcon and range control and between afterIcon and range control were not equal.

* RangeControl: Fix space between icons and rail
  • Loading branch information
imangm authored Jan 24, 2022
1 parent f663f7a commit afa6767
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- Prevent keyDown events from propagating up in `CustomSelectControl` ([#30557](https://github.com/WordPress/gutenberg/pull/30557))
- Mark `children` prop as optional in `SelectControl` ([#37872](https://github.com/WordPress/gutenberg/pull/37872))
- Add memoization of callbacks and context to prevent unnecessary rerenders of the `ToolsPanel` ([#38037](https://github.com/WordPress/gutenberg/pull/38037))
- Fix space between icons and rail `RangeControl` ([#36935](https://github.com/WordPress/gutenberg/pull/36935))

### Experimental

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const BeforeIconWrapper = styled.span`
export const AfterIconWrapper = styled.span`
margin-top: ${ railHeight }px;
${ rtl( { marginLeft: 16 } ) }
${ rtl( { marginLeft: 6 } ) }
`;

const railBackgroundColor = ( { disabled, railColor } ) => {
Expand Down

0 comments on commit afa6767

Please sign in to comment.