-
Notifications
You must be signed in to change notification settings - Fork 23
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
[feat] interactive states for <rh-tag>
#2148
Comments
Since we currently have linkable Linkable:
Clickable:
Where And, in the template, we'd just embed a Or maybe The attributes would be an either-or situation, as you couldn't have both at the same time. One would take precedence. |
@markcaron @marionnegp What do you think of these state explorations for link vs. button? ![]() |
@coreyvickery, tag as a button looks good to me! Does tag as a link need a hover state? The typical hover state for underlined inline links would be for the underline to move down a couple pixels, but I don't think that works as well here. |
Keep in mind WCAG states that |
@marionnegp @adamjohnson For the ![]() |
@coreyvickery, we were considering using a regular tag next to a link tag in My Red Hat, and having no underline makes it tough to know that one's clickable. (Ignore the old underline style.) I do like how you've simplified the default state for a tag as a link vs. a button though. Might bring this to the designers on My Red Hat to see what they think. ![]() |
@marionnegp @adamjohnson Another exploration using tags placed next to each other. ![]() |
@coreyvickery, would it be weird for a link tag's default state to have the underline and then its hover state would remove it? Another possible direction is making the underline solid instead of dashed on hover. The text color change is pretty imperceptible between the |
@marionnegp I'm happy with that if you are. Can we move forward with the below styles and interactions? About your second point, yes, color alone is not an accessibility best practice. ![]() |
@coreyvickery, I'm good with it if you are. |
@adamjohnson Are you able to work on this? If so, I'll provide the changes. |
Update 3/13: Changes to docs that reflect the above are done. |
Another update 3/13: This might need to get moved to Diglett because we have other high priority docs that need to get done first. |
Description
Docs for the linked
<rh-tag>
show states for linked tags, but they have to be implemented.We also need to consider instances where
<rh-tag>
acts as a button, and we may need to show a different affordance for interactivity. (For example, a tag in My Red Hat can trigger a popover.) PatternFly's tag demos currently show clickable tags and linked tags that use the same states.Additional updates:
Suggested solution
Screenshots
No response
Example API
Additional context
No response
The text was updated successfully, but these errors were encountered: