Replies: 3 comments 1 reply
-
Hi @hsnaydd I'm not sure I follow the issue here. Would you mind to expand a bit more what's going on here? Thanks for your help! |
Beta Was this translation helpful? Give feedback.
-
Hi @gpbl, İf you look at the first code block, in the line 54, Additionally, as seen in the 2nd and 3rd code blocks. if a dropdown is not active, the month or year information is wrapped by a |
Beta Was this translation helpful? Give feedback.
-
Oh I see what you mean. My choice there was to make the visible dropdown label to match the caption label style - and have the chevron on the right to show it is a dropdown element. You can target that via
Its only purpose is to have an aria-live region announced by screen readers and I wasn't expected to style it. What is your use case? I'm sure that with tailwind you can target a child element (the `>span[role="status"]). (right now O don't remember the name of such feature) I'm moving this to the Discussion - I'm hesitant to update the classnames of that aria-hidden caption, because I'm not sure how to keep backward compatibility with existing CSS... |
Beta Was this translation helpful? Give feedback.
-
The
Dropdown
component usesCaptionLabel
styles in it, but not this component itself. I think theCaptionLabel
component itself should be used here instead of the class.react-day-picker/src/components/Dropdown.tsx
Lines 43 to 62 in 1e191b2
We should also use it in the following lines (or maybe we need to create new ones). Currently, we cannot directly modify the styles of these places.
react-day-picker/src/DayPicker.tsx
Lines 381 to 383 in 1e191b2
react-day-picker/src/DayPicker.tsx
Lines 399 to 401 in 1e191b2
Beta Was this translation helpful? Give feedback.
All reactions