deven-org / boiler

A fully customisable and tokenised design system boilerplate built by Accenture Song
https://boilerds.com/
MIT License
14 stars 6 forks source link

Text Area - fix accessibility when hasLabel is false #947

Open thrbnhrtmnn opened 4 months ago

thrbnhrtmnn commented 4 months ago

Description / User story

Description / User Story

The following incomplete test is thrown by the storybook accessibility addon and should be fixed, if possible:

Image

The error occurs, when hasLabel = false. The same error also appeared in the past in other circumstances and was fixed with #777

The error occurs in all sizes and in dark and light mode.

Requirements / Prerequisites

Acceptance Criteria

Additional information

Code of Conduct

ashk1996 commented 1 month ago
  1. Removing the display property for the textarea-input-control class solved the issue but created an extra space between the containers.
  2. Removing the background colour for the same class solves the issue as well, however this would not be the final solution.

Hence further investigation needs to be done

ashk1996 commented 1 month ago

Potential solution below has been pushed that solves the accessibility error.

Next steps - Testing needs to be done to check if all elements and states work as before.

thrbnhrtmnn commented 1 month ago

Hey @ashk1996 , here are the findings from my review:

More findings, but not part of this scope:

thrbnhrtmnn commented 1 month ago

Hey @ashk1996 , I only managed to have a short look, but I think there is still an issue:

ashk1996 commented 3 weeks ago

Hi @thrbnhrtmnn

Could you please retest this branch. I have fixed the issue addressed.

Thank you

thrbnhrtmnn commented 3 weeks ago

Hey @ashk1996 , here are my findings:

Apart from this, this already looks really nice!

EDIT: Here are some screenshots: light mode with correct color: Screenshot 2024-06-24 at 13 30 15

dark mode with wrong color: Screenshot 2024-06-24 at 13 30 22

dark mode with wrong color (value / input selected): Screenshot 2024-06-24 at 13 30 29

ashk1996 commented 1 week ago

Hi @thrbnhrtmnn The issue has been fixed :) Thank you

thrbnhrtmnn commented 1 week ago

Hi @ashk1996 , it looks good for all states except the disabled state.

Please make sure, that you are always using the correct tokens in each state. We have the following tokens in design and should use all in code:

ashk1996 commented 4 days ago

Hi @thrbnhrtmnn The tokens have been added correctly to each state in the new commit. Could you please review it. Thank you

thrbnhrtmnn commented 4 days ago

Hi @ashk1996 , thanks for adding the correct tokens, this loos great now!

Unfortunately I found something new during the review: