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

fix(a11y): mgt-file and mgt-picker visibility issues in dark-mode #2667

Merged
merged 22 commits into from
Oct 3, 2023

Conversation

Mnickii
Copy link
Collaborator

@Mnickii Mnickii commented Aug 16, 2023

Closes #2318
Closes #2727

PR Type

Bugfix

Description of the changes

Fixes file line2 and 3 visibilities in dark mode
Fixes picker placeholder visibility in dark mode

PR checklist

  • Project builds (yarn build) and changes have been tested in at least two supported browsers (Edge + non-Chromium based browser)
  • All public APIs (classes, methods, etc) have been documented following the jsdoc syntax
  • Stories have been added and existing stories have been tested
  • Added appropriate documentation. Docs PR:
  • License header has been added to all new source files (yarn setLicense)
  • Contains NO breaking changes

Other information

@Mnickii Mnickii requested a review from a team as a code owner August 16, 2023 10:30
@microsoft-github-policy-service
Copy link
Contributor

Thank you for creating a Pull Request @Mnickii.

This is a checklist for the PR reviewer(s) to complete before approving and merging this PR:

  • I have verified a documentation PR has been linked and is approved (or not applicable)
  • I have ran this PR locally and have tested the fix/feature
  • I have verified that stories have been added to storybook (or not applicable)
  • I have tested existing stories in storybook to verify no regression has occured
  • I have tested the solution in at least two browsers (Edge + 1 non-Chromium based browser)

@github-actions
Copy link

The updated storybook is available here

@github-actions
Copy link

The updated storybook is available here

@gavinbarron
Copy link
Member

@vagpt could you please review the fixes here for #2318

musale
musale previously approved these changes Aug 16, 2023
Copy link
Contributor

@musale musale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@vagpt
Copy link
Collaborator

vagpt commented Aug 17, 2023

Hi @gavinbarron,

This issue is still reproduced as of now proper text is still not properly visible when user activates the 'Color Mode' toggle button. Also, we have checked the Color Contrast for the text, and it will be less than 4.5:1 due to which this issue still appears and same for the placeholder field under the 'Picker' so please refer to the snippet below for the reference.

Snippet:

image

@gavinbarron
Copy link
Member

@Mnickii for the picker you're likely need to use the ::placeholder selector to target the placeholder text.

@github-actions
Copy link

The updated storybook is available here

@github-actions
Copy link

The updated storybook is available here

@github-actions
Copy link

The updated storybook is available here

Mnickii and others added 2 commits August 22, 2023 16:53
@github-actions
Copy link

The updated storybook is available here

@gavinbarron
Copy link
Member

@Mnickii are you blocked and waiting on some color suggestions from @yejuntak?

@Mnickii
Copy link
Collaborator Author

Mnickii commented Aug 24, 2023

@gavinbarron in the last meeting, @yejuntak mentioned that there will be a figma update on dark mode colors, so that's what we're waiting on for this.

@sebastienlevert
Copy link
Contributor

Ping @yejuntak. Where are we with the color updates?

@yejuntak
Copy link
Contributor

yejuntak commented Aug 28, 2023

@sebastienlevert I have shared my progress with the team at the last sync. I am currently implementing the whole auto-recoloring (web variables and mode) new features in Figma, to resolve all the similar issues permanently. However, since our Figma File was using too many unnecessary multiple color sources, changing the color to web variables are longer than what I thought. As soon as I finish test variables, I will prioritize MGT file and MGT picker then rest of the components.

@sebastienlevert
Copy link
Contributor

This PR is sitting here because of a Figma update? Can you share the color codes for now so we can expedite this change to the next version? Figma updates can happen after. Thanks. @yejuntak

@github-actions
Copy link

The updated storybook is available here

@github-actions
Copy link

The updated storybook is available here

1 similar comment
@github-actions
Copy link

The updated storybook is available here

@gavinbarron
Copy link
Member

@yejuntak yes, 4.5:1 is the required contrast ratio for regular text:
Application Insights contrast checker

@gavinbarron
Copy link
Member

@Mnickii great work so far here. I know this one has been a lot more work than it seemed at first glance. Although there is a link between the color work here and the changes to the people-picker I would have preferred a separate PR for that change. What's done is done now, but in future the more we can keep work separated the better.

I think that the placeholder text color for our mgt-picker is still not right. It looks like it uses the same color as the input and selected item text, and it really should not. @yejuntak can you please let us know what colors the placeholder text needs to be?

@yejuntak
Copy link
Contributor

@gavinbarron Currently all the input placeholder texts are foreground 4 #707070. I have referenced from chat component. It is probably one of those colors where we have the Fluent design langage have the color but somehow we don't have it. @Mnickii Let me know if there is any other issues

@github-actions
Copy link

The updated storybook is available here

@github-actions
Copy link

The updated storybook is available here

@github-actions
Copy link

github-actions bot commented Oct 3, 2023

The updated storybook is available here

Copy link
Contributor

@sebastienlevert sebastienlevert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@github-actions
Copy link

github-actions bot commented Oct 3, 2023

The updated storybook is available here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
6 participants