-
Notifications
You must be signed in to change notification settings - Fork 159
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
Favourite/star is not button #1645
Comments
I've examined a few possible approaches: ApproachesApproach 1
Approach 2
Approach 3
Approach 4
Assumptions
Notes
I'm not sure yet how to decide what balance we want to have between having more logic in the design system or more in Phoenix. |
in terms of reusability, one rule of thumb is to first add it in Phoenix (approach 3 + pending spinner) and then see later on how many times we'll want to reuse this logic. does that make sense ? |
I'd be actually in favour of approach 4 - button without border aka "link button". We need to adjust button component anyway to have the opportunity to use it like this also in other places + having |
There is already link button in uikit - https://getuikit.com/docs/button#style-modifiers |
I've tried using however it adds an extra margin left just because there happens to be a too general rule for spans inside of buttons here: https://github.com/owncloud/owncloud-design-system/blob/master/src/styles/theme/oc-button.scss#L25 if I can solve the latter we could use "oc-button" also with the link variant |
Seems this is happening only because the "oc-star" is rendering two spans in the DOM, so when the second one is there it looks like there's an "oc-icon" followed by a span, to which the rule will shift the span to make room for the icon like it is done for the hamburger menu. I'll see if I can change oc-star to only render a single element. |
Draft PRs: |
Will get resolved by #5018 |
Fixed via #5000, coming to |
Description
Favourite/Star button is not a button, therefore cannot receive focus
The text was updated successfully, but these errors were encountered: