ui-components icon indicating copy to clipboard operation
ui-components copied to clipboard

Link component

Open twjeffery opened this issue 1 year ago • 5 comments

We have a "text link" component in design, it seems like it may also be useful for development.

Documentation in progress on this component GitHub issue

Use case:

  • consistent sizing and spacing of icon when text resizes
  • hover and link interaction can be done easier
  • lots of custom css has to be done currently to achieve the same thing
image

Acceptance Criteria

  1. New goa-link component created (React component already created, Angular component still needed)
    • leadingIcon and trailingIcon properties
    • size property to determine icon and text size (and gap spacing)
    • slot for link inclusion

twjeffery avatar Apr 29 '24 17:04 twjeffery

I am thinking if we can create/should create a new component such as goa-link It can be used as: <goa-link href="#" target="_blank" size="sm" icon="copy">Some text or even a slot</goa-link>

It can even have a leading icon, or trailing icon. Example is: image

Consider about accessibility, when href is there, we can add role according to this document https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attributes

vanessatran-ddi avatar Apr 29 '24 19:04 vanessatran-ddi