-
Notifications
You must be signed in to change notification settings - Fork 72
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
Update styling for empty button and date picker icon #1342
Changes from 3 commits
d51c6ae
a95e4d2
331261c
555b623
59cc727
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,9 +23,11 @@ | |
} | ||
|
||
// sass-lint:disable no-important | ||
.ouiQuickSelectPopover__buttonText { | ||
// Override specificity from universal and sibling selectors | ||
margin-right: $ouiSizeXS !important; | ||
.ouiFormControlLayout__prepend{ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: space before There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. removed the prepend class based on Miki's comment |
||
.ouiQuickSelectPopover__buttonText { | ||
// Override specificity from universal and sibling selectors | ||
margin-right: calc($ouiSizeXS/2) !important; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why do you need calc when this will resolve to a value? Also, how did you determine this size? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Currently, this is how it is done in rest of OUI rather than using constants. This approach may be helpful in making things extensible when a theme comes in and changes the Please let me know if this isn't recommended can hard code to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry, my point is that |
||
} | ||
} | ||
|
||
.ouiQuickSelectPopover__anchor { | ||
|
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.
I see that the new rule applies to elements with classname
ouiQuickSelectPopover__buttonText
when inside a prepend but it removes the rule that applied margin to all other elements with classnameouiQuickSelectPopover__buttonText
. Shouldn't we retain that? Are we not breaking anything else by removing this?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.
I did check it, every repo in the opensearch-project is using this class for date-picker. It is only dashboards which is using this class for the save button.
Class references: https://github.com/search?q=org%3Aopensearch-project+euiQuickSelectPopover__buttonText&type=code
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.
is this class only used by explicit classname or is it applied by a component? If by component, I'm not sure if your search is sufficient for usage.
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.
Reverted to original class. Reasoning based on offline discussion with @AMoo-Miki since, OUI is a styling library: