-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Rename ".button-link" to ".button-ghost" #24670
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
👍 for following chakra-ui naming, I think it's probably the most well thought-out UI framework around currently. |
Then let's go with it? After this PR, I will change |
Yup, I can also live with both. |
I prefer the chakra naming, we can later have a true https://chakra-ui.com/docs/components/button/usage#button-variants |
Mainstream frameworks: * https://getbootstrap.com/docs/5.0/components/buttons/ * https://primer.style/css/components/buttons#link-button * https://nextui.org/docs/components/button#light * https://coreui.io/react/docs/components/button/ * https://design-system.hpe.design/components/button * https://chakra-ui.com/docs/components/button/usage#button-variants * https://mui.com/material-ui/react-button/ All (at least most?) of them make "link" button have "underline" when hovering. So, a "link" is a "link", when it's hovered, it should have the underline by default. To be strict, Gitea's "button-link" is not link-style, so it needs a better name. Actually, for the "plain" button, there are some different approaches: * Some frameworks just make "default" button as no style (not feasible in Gitea/Fomantic UI) * Primer uses "btn-invisible", which is not a proper word * NextUI uses "light", which is not a proper word, either ... * CoreUI / ChakraUI uses "ghost", I think this name is acceptable. Welcome to suggest better name for such button. Or, we just call it ".button-plain" or ".button-simple", in fact I prefer such simple and clear name.
Mainstream frameworks:
All (at least most?) of them make "link" button have "underline" when hovering.
So, a "link" is a "link", when it's hovered, it should have the underline by default. To be strict, Gitea's "button-link" is not link-style, so it needs a better name.
Actually, for the "plain" button, there are some different approaches:
Welcome to suggest better name for such button.
Or, we just call it ".button-plain" or ".button-simple", in fact I prefer such simple and clear name.