Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSTEAM1-1084: Uploader - High Contrast Mode #11716

Merged
merged 5 commits into from
Jun 13, 2024

Conversation

Isabella-Mitchell
Copy link
Contributor

@Isabella-Mitchell Isabella-Mitchell commented Jun 12, 2024

Resolves JIRA https://jira.dev.bbc.co.uk/browse/WSTEAM1-1084

Overall changes

Adds transparent borders to File Upload and Remove File buttons
Adds stroke to X on high contrast mode only in hover/ focus states
Also reverts checkbox tick from mask image back to background image so that it can be seen on Windows High Contrast Mode

Code changes

File Uploader

Before

Before-on-latest

After - buttons have outlines

choose-a-file-button
cross-outline

Contrast stroke on cross in hover state (using HIGH_CONTRAST media query)

cross-outline-hover

Bug Fix - Checkbox

Before - This checkbox is ticked. The masked image tick is not visible at all

masked-image-not-rendering

After - Reverted changes made in #11663 so that the tick shows on Windows High Contrast Mode. (I think when we tested this we only did it on Firefox high contrast mode and not Edge/ Windows High Contrast Mode). The tick is black so it's hard to see but at least it is visible.

can-just-about-see-background-image

Testing

  1. Visit Storybook link on Windows High Contrast mode. (Also see screengrabs above)

  2. Check the X should be distinguishable.

  3. Check the Upload button should be distinguishable as a button.

  4. Visit Storybook link without high contrast mode

  5. Check that when you hover over the X button a stroke does not appear.

Helpful Links

Add Links to useful resources related to this PR if applicable.

Coding Standards

Repository use guidelines

@Isabella-Mitchell Isabella-Mitchell changed the title WSTEAM1-1084: Initial commit| WSTEAM1-1084: High Contrast Mode Jun 12, 2024
@Isabella-Mitchell Isabella-Mitchell marked this pull request as ready for review June 12, 2024 13:27
@Isabella-Mitchell Isabella-Mitchell changed the title WSTEAM1-1084: High Contrast Mode WSTEAM1-1084: Uploader - High Contrast Mode Jun 12, 2024
@amoore108 amoore108 merged commit a64eeeb into latest Jun 13, 2024
11 checks passed
@amoore108 amoore108 deleted the WSTEAM1-1084-uploader-high-contrast branch June 13, 2024 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants