-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
bug: border radius not set on elements that have no p-
class
#1342
Comments
I will check the padding issue and I will update this issue. |
Fixed in latest version. |
First off, thanks for the super quick response @saadeghi ! I think there's some misunderstanding however regarding the expected behaviour, and therefore I'd like to reopen this issue. In my opinion, Also, in the new version, if you switch themes in the docs, none of the menu items have a rounded border applied anymore, whereas previously, depending on the theme's I guess it also boils down whether you consider the menu's What do you think? PS: Regarding the testing: It's great that accessibility is a priority and has proper tests! Yet, I think visual regression testing would also be highly useful and I shall add a new proposal for it. |
I don't think the padding of list and the border radius of the list item should be independent from each other. That might sound a weird statement but here's the reason:
So instead of putting everything on the shoulders of the developer, there's a style that detects if the list has padding or not and applies border radius for the list item only if there's no padding. That would make the menu look better and in sync with the overall design language. As you can see, there are also specific rules about the first and last items and it gives them border radius and start and end if there's border radius for the list. Also, each built-in daisyUI theme can have its own value for |
I can understand your reasoning and I much appreciate the effort to reduce cognitive load. I'm aware that |
What is your proposition? |
I agree with your behaviour for the automated menu li rounding. The only thing I wanted to note is that, in a full-page menu within a drawer, like the guide previously had rounded li items for themes with Therefore I wondered, if it isn't better, at least for menus in drawers, to keep the rounding for menu items. |
Yes you're right. The sidebar menu is fixed now. |
It's working for the sidebar now but not for the |
Noticed the following bug where border-radius is not set when the overlying tag does not include
p-0
.Screen.Recording.2022-11-10.at.11.36.17.mov
Seems like this is the culprit:
On a sidenote: Does daisyui use visual testing ?
The text was updated successfully, but these errors were encountered: