-
Notifications
You must be signed in to change notification settings - Fork 63
Feat/atom slider fullwidth #2441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
[firstMarkKey]: {label: marks[firstMarkKey], style: {transform: 'inherit'}}, | ||
[lastMarkKey]: { | ||
label: marks[lastMarkKey], | ||
style: {transform: 'inherit', left: 'auto', right: '0'} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you think we could achieve implement this in a pure CSS way?
just as an idea, could we style first-child
and last-child
markers accordingly if the component has the fullWidth
prop set to true
?
IMHO it'd be cleaner... what do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes! I'm with you with the approach, but here we're using rc-slider
and is managing this styles with inline mode, so we only do that in CSS using !important
declaration, instead them provide this style
prop for each markers. For me, we could do an exception using !important
, but It looks a bit tricky.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh... if the only alternative we have here is using !important
, I think your original implementation is cleaner then
components/atom/slider/src/index.js
Outdated
defaultValue, | ||
invertColors | ||
invertColors, | ||
fullWidth |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Boolean prop... isWhatever or hasWhatever
|
Atom/Slider
π Show
TASK:
Types of changes
Description, Motivation and Context
In MA we need a full width design of AtomSlider, to show custom marks inside a modal.
Screenshots - Animations