carbon icon indicating copy to clipboard operation
carbon copied to clipboard

Add / Clarify Image component behaviour

Open PaulSumner-Sage opened this issue 2 years ago • 1 comments

Desired behaviour

As requested: raising a GitHub request for the following two changes:

  • alt prop will be clarified to always be provided
  • ability to set aria-hidden

Ah I see and thanks @Robin Zigmond, perhaps to prevent the abuse of passing of null alt strings, we could add a new prop to Image such as decorative which would automatically handle cases like this. Please could you add this as an enhancement on our github repo @Paul ?

Current behaviour

An error is given if alt prop is empty string and there is no way to set aria hidden

Suggested Solution

n/a

CodeSandbox or Storybook URL

No response

Anything else we should know?

No response

Confidentiality

  • [X] I confirm there is no confidential or commercially sensitive information included.

PaulSumner-Sage avatar Sep 13 '22 07:09 PaulSumner-Sage

FE-5362

DipperTheDan avatar Sep 13 '22 12:09 DipperTheDan

:tada: This issue has been resolved in version 114.12.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

carbonci avatar Feb 09 '23 09:02 carbonci