Skip to content

Commit

Permalink
fix(colorpickers): prevent subpixel slider height increase (#1034)
Browse files Browse the repository at this point in the history
  • Loading branch information
jzempel committed Mar 11, 2021
1 parent 1c7f6ac commit b24b687
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/colorpickers/.size-snapshot.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"index.cjs.js": {
"bundled": 51487,
"minified": 34115,
"gzipped": 7990
"bundled": 51620,
"minified": 34225,
"gzipped": 8006
},
"index.esm.js": {
"bundled": 48422,
"minified": 31422,
"gzipped": 7858,
"bundled": 48555,
"minified": 31532,
"gzipped": 7877,
"treeshaked": {
"rollup": {
"code": 25562,
"code": 25646,
"import_statements": 845
},
"webpack": {
"code": 28615
"code": 28699
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions packages/colorpickers/src/styled/Colorpicker/StyledSliders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ export const StyledSliders = styled.div.attrs({
margin-${props => (props.theme.rtl ? 'right' : 'left')}: ${props => props.theme.space.base * 2}px;
width: 100%;
& > * {
height: ${props => getTrackMargin(props.theme) * 2 + getTrackHeight(props.theme)}px;
}
& > :first-child {
top: -${props => getTrackMargin(props.theme)}px;
}
Expand Down

0 comments on commit b24b687

Please sign in to comment.