You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which is meant to override the cursor: pointer style that is defined on the .rs-picker-default .rs-picker-toggle selector. However, it comes after the latter in the generated .css file, so it does not actually apply the cursor: text to the element.
Unfortunately I cannot quite figure out where the .rs-picker-default .rs-picker-toggle selector comes from (I'm new to .less) but my guess is that this specificity issue is caused by the alphabetical import order in rsuite/styles/index.less. It should import the common/default styles first, the specific modules later?
Expected Behavior
The <InputPicker> should have a text cursor.
The text was updated successfully, but these errors were encountered:
ab-pm
changed the title
InputPicker styles do not overwrite Picker styles
InputPicker styles are less specific than Picker styles
Aug 9, 2023
It could probably be caused by the order of the class declarations. But after inspecting the CSS overrides, I guess the .rs-picker-default .rs-picker-toggle here might be just redundant here as we already specified cursor: pointer for general picker toggles with .rs-picker-toggle class.
What version of rsuite are you using?
5.28.3
Describe the Bug
rsuite/InputPicker/styles/index.less defines
which is meant to override the
cursor: pointer
style that is defined on the.rs-picker-default .rs-picker-toggle
selector. However, it comes after the latter in the generated .css file, so it does not actually apply thecursor: text
to the element.Unfortunately I cannot quite figure out where the
.rs-picker-default .rs-picker-toggle
selector comes from (I'm new to .less) but my guess is that this specificity issue is caused by the alphabetical import order in rsuite/styles/index.less. It should import the common/default styles first, the specific modules later?Expected Behavior
The
<InputPicker>
should have a text cursor.The text was updated successfully, but these errors were encountered: