Distinguish the semantics of buttons and links more clearly #8743
Unanswered
ek-so
asked this question in
Feature Request
Replies: 1 comment
-
|
iirc, there are alignment needs that factored into what we have today. This is something else to clarify as we potentially head down this path. In other words, vertically aligning links to other buttons is pain... guidance may be to use an empty/flush button, for example. I suspect we will at least need an 'external link' icon to appear with links. This may be reserved for use within the EuiLink component however and not advised to be done directly. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
Currently, we have links that are styled like buttons but remain links semantically, and buttons that are styled like links (
flushbuttons) but are still buttons semantically. On top of that, we can also make links be semantically buttons and vice versa — all of which leads to quite a bit of confusion.Proposal
I suggest we consider a more clear way to differentiate these two by function:
empty,defaultorflush.When you decide which component you want to use, you do it with one question: do I need just a link, or smth else, more complex? (e.g. background on hover, to include icons etc.)
Beta Was this translation helpful? Give feedback.
All reactions