Skip to content

Display chat message bubble border in high contrast mode#2106

Merged
anjulgarg merged 22 commits intomainfrom
anjulgarg/bugfix-2864691-high-contrast
Jul 25, 2022
Merged

Display chat message bubble border in high contrast mode#2106
anjulgarg merged 22 commits intomainfrom
anjulgarg/bugfix-2864691-high-contrast

Conversation

@anjulgarg
Copy link
Copy Markdown
Member

@anjulgarg anjulgarg commented Jul 20, 2022

What

Add border around messages in high contrast mode

image
image

Why

To resolve the bug https://skype.visualstudio.com/SPOOL/_workitems/edit/2864691

How Tested

Manually on a windows device

Process & policy checklist

  • I have updated the project documentation to reflect my changes if necessary.
  • I have read the CONTRIBUTING documentation.

Is this a breaking change?

  • This change causes current functionality to break.

@anjulgarg anjulgarg enabled auto-merge (squash) July 20, 2022 20:32
@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 20, 2022

Chat bundle size is increased❗.

  • Current size: 5263330
  • Base size: 5263268
  • Diff size: 62

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 20, 2022

CallWithChat bundle size is increased❗.

  • Current size: 5487803
  • Base size: 5487741
  • Diff size: 62

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 20, 2022

Calling bundle size is increased❗.

  • Current size: 5088323
  • Base size: 5088261
  • Diff size: 62

@github-actions
Copy link
Copy Markdown
Contributor

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "ui change" label to the PR for updating the snapshot.

@github-actions
Copy link
Copy Markdown
Contributor

zIndex: CHAT_MESSAGE_ZINDEX
zIndex: CHAT_MESSAGE_ZINDEX,
'@media (forced-colors: active)': {
forcedColorAdjust: 'none'
Copy link
Copy Markdown
Member

@dmceachernmsft dmceachernmsft Jul 21, 2022

Choose a reason for hiding this comment

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

does stopping forced colours maintain the required colour ratio for the different modes? @edwardlee-msft I believe its like 3:1 or something for items like this? or was it 5:1? might be worth adding a border or something when forced colours are on as well?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

How can we check that?
Teams app also shows the same colors in high contrast modes.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I use the accessibility insights tool for windows, you can download it here: https://accessibilityinsights.io/docs/windows/overview/

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Updated the description with screenshots from the tool. LMKWYT

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

For me Teams has the same bug where messages have no border:
image

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Correct.

Copy link
Copy Markdown
Member

@JamesBurnside JamesBurnside left a comment

Choose a reason for hiding this comment

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

Wihout seeing any concrete documentation for how to style for high contrast modes, I think we should be leaving the background to be set by the high contrast settings - the background can be set to any color in the system settings:
image (so our colors might be broken then if we force them to not use the active colors)

Is it possible to leave the colors as is but provide a border around the message in forced-colors:active?

Otherwise leave as is and let the a11y team decide if the fix is sufficient!

Copy link
Copy Markdown
Member

@JamesBurnside JamesBurnside left a comment

Choose a reason for hiding this comment

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

Wihout seeing any concrete documentation for how to style for high contrast modes, I think we should be leaving the background to be set by the high contrast settings - the background can be set to any color in the system settings:
image (so our colors might be broken then if we force them to not use the active colors)

Is it possible to leave the colors as is but provide a border around the message in forced-colors:active?

Otherwise leave as you have it and let the a11y team decide if the fix is sufficient!

@anjulgarg
Copy link
Copy Markdown
Member Author

@JamesBurnside Great recommendations. Added borders during high contrast mode instead of forcing bg colors. This is the best fix IMO

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "ui change" label to the PR for updating the snapshot.

@github-actions
Copy link
Copy Markdown
Contributor

@anjulgarg anjulgarg changed the title Forcing chat message bubble background color in high contrast mode Display chat message bubble border in high contrast mode Jul 22, 2022
@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@anjulgarg anjulgarg merged commit 7a5321a into main Jul 25, 2022
@anjulgarg anjulgarg deleted the anjulgarg/bugfix-2864691-high-contrast branch July 25, 2022 22:01
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.

5 participants