Skip to content

Commit

Permalink
Merge pull request #832 from oceanbase/dengfuping-dev
Browse files Browse the repository at this point in the history
fix(design): Slider start and end mark should align always
  • Loading branch information
dengfuping authored Nov 14, 2024
2 parents 122feae + ee829f7 commit 873a5b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/design/src/slider/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ export const genSliderStyle: GenerateStyle<SliderToken> = (token: SliderToken):
return {
[`${componentCls}${componentCls}-horizontal`]: {
[`${componentCls}-mark`]: {
[`${componentCls}-mark-text[style^="left: 0%; transform: translateX(-50%);"]`]: {
[`${componentCls}-mark-text[style*="left: 0%;"]`]: {
transform: `translateX(calc(0% - ${dotSize / 2}px)) !important`,
},
[`${componentCls}-mark-text[style^="left: 100%; transform: translateX(-50%);"]`]: {
[`${componentCls}-mark-text[style*="left: 100%;"]`]: {
transform: `translateX(calc(-100% + ${dotSize / 2}px)) !important`,
},
},
Expand Down

0 comments on commit 873a5b7

Please sign in to comment.