elements icon indicating copy to clipboard operation
elements copied to clipboard

feat(elements): show tags description if exist

Open Airkro opened this issue 1 year ago • 2 comments

Elements Default PR Template

In general, make sure you have: (check the boxes to acknowledge you've followed this template)

  • [x] Read CONTRIBUTING.md

Other Available PR Templates:

  • Release: https://github.com/stoplightio/elements/compare?template=release.md
    • [x] Read the release section of CONTRIBUTING.md

Airkro avatar Jun 07 '24 05:06 Airkro

Deploy Preview for stoplight-elements ready!

Name Link
Latest commit 6ff57a600ce58a750771149d764deb7b89ff3400
Latest deploy log https://app.netlify.com/projects/stoplight-elements/deploys/6889a30c3cde1100084db51d
Deploy Preview https://deploy-preview-2594--stoplight-elements.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

netlify[bot] avatar Jun 07 '24 05:06 netlify[bot]

Deploy Preview for stoplight-elements-demo ready!

Name Link
Latest commit 6ff57a600ce58a750771149d764deb7b89ff3400
Latest deploy log https://app.netlify.com/projects/stoplight-elements-demo/deploys/6889a30c4f112f000807d6f7
Deploy Preview https://deploy-preview-2594--stoplight-elements-demo.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

netlify[bot] avatar Jun 07 '24 05:06 netlify[bot]

I understand the discussion about the feasibility of putting the description into the HTML title attribute. I absolutely support the initial implementation idea even if I acknowledge its shortcomings. It's not something that supports all possible use cases.

To see what we're talking about, I quickly hacked two title variants (single line, multi-line) into the GitHub API on the Elements demo instance. Testing was done with Firefox on the Mac. I find both results totally acceptable.

Screenshot 2025-07-31 at 15 58 12 Screenshot 2025-07-31 at 16 00 01

To improve on this, one would need to render a tooltip icon (aka info icon) with a proper highlight behavior. However, this would feel unnatural IMO as Elements doesn't have such icons in its design language AFAICS.

marcelstoer avatar Jul 31 '25 14:07 marcelstoer