gatsby-theme-carbon icon indicating copy to clipboard operation
gatsby-theme-carbon copied to clipboard

Update permalink functionality

Open aagonzales opened this issue 3 years ago • 1 comments

This topic was discussed in our design crit on 6/6/21 with @mbgower.

Topic: permalinks

Permalink, the link icon that appears next to the headers on the carbon website. image

Current permalink concerns:

  • Permalink only appears on hover and no accessible on mobile/touch devices
  • With wcag2.? actions on hover will more longer be accessible.
  • Action only scrolls user to point on page and does not copy link. User must manually copy link from browser.
  • Permalink is an added tab stop for keyboard users

Possible solutions:

  • Update so that clicking on the permalink icon copies the url link instead of navigating to it.
  • Update so the content on page does not move when user clicks on permalink
  • Icon can remain only on hover if there is another always present way to trigger action. Suggested solution is to make the headers themselves also targets for copying the link.

Related issues:

  • https://github.ibm.com/IBMa/E2E/issues/2079
  • https://github.ibm.com/IBMa/E2E/issues/1709

aagonzales avatar May 06 '21 21:05 aagonzales

I believe this fix will need to be made over in the Carbon Gatsby Theme once we decide on a solution

tw15egan avatar May 07 '21 19:05 tw15egan