Repository navigation
Show icons and link references in forced colors - #5907
Eugene (OEvgeny) wants to merge 13 commits into
Conversation
d067a05 to
e266265
Compare
There was a problem hiding this comment.
Not exactly sure, maybe the "1 reference" should not be in yellow or not.
Let's try browser native <summary> to see if it is yellow or not.
Because what I feel (from other screenshots) is that "yellow is for hyperlink", for example, the send button is an action and is not yellow.
There was a problem hiding this comment.
The copy button does not have a border.
There was a problem hiding this comment.
Added a ButtonText border to the Copy button in forced colors in 2f6af04, see snap 1.
There was a problem hiding this comment.
Copy button does not have border.
There was a problem hiding this comment.
Added a ButtonText border to the Copy button in forced colors in 2f6af04, see snap 1.
There was a problem hiding this comment.
Not exactly sure but it seems missing the message border.
There was a problem hiding this comment.
Fluent bubbles now get a CanvasText border in forced colors (fb2720c), see snap 1.
There was a problem hiding this comment.
Seems missing message border.
There was a problem hiding this comment.
Fluent bubbles now get a CanvasText border in forced colors (fb2720c), see snap 1.
There was a problem hiding this comment.
Message border maybe?
| text-decoration: underline; | ||
|
|
||
| @media (forced-colors: active) { | ||
| color: LinkText; |
There was a problem hiding this comment.
Capitalization, some time we have buttonText, and this one is LinkText.
I think "TitleCase" is good.
There was a problem hiding this comment.
Switched all system colors in this PR to TitleCase in 158e811.
| --webchat__fluent-icon--color: currentColor; | ||
|
|
||
| @media (forced-colors: active) { | ||
| --webchat__fluent-icon--color: canvasText; |
There was a problem hiding this comment.
| --webchat__fluent-icon--color: canvasText; | |
| --webchat__fluent-icon--color: CanvasText; |
| --webchat__component-icon--color: currentColor; | ||
|
|
||
| @media (forced-colors: active) { | ||
| --webchat__component-icon--color: buttonText; |
There was a problem hiding this comment.
Nitpick.
| --webchat__component-icon--color: buttonText; | |
| --webchat__component-icon--color: ButtonText; |
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/system-color
In forced colors, Fluent icons with the text appearance were painted in the background color: the mask icon is drawn with `background-color: currentColor`, which forced colors replace with `Canvas`. - FluentIcon: text-appearance icons use `canvasText` in forced colors, the same as ComponentIcon, so the Upload file, Send, Telephone keypad and microphone buttons, starter prompt images, the telephone keypad message icon and the drop zone icon are visible - Tests: fluentTheme/icons.forcedColors (light and dark), fluentTheme/telephoneKeypad.forcedColors; updated the forced-colors snapshot of richCard/animationCard.gif.fluent.html (send box icons)
The icon of the Copy button of code blocks was painted in the background color in forced colors, in the default and Fluent themes. - Use `buttonText` in forced colors, like ActivityButton (#5897) - Tests: markdown/codeBlockCopyButton/forcedColors (default and Fluent, light and dark)
Also await actRecognizeOnce() in the dictating test, drop its unrelated name assertion, and shorten the changelog entry.
158e811 to
bad14a7
Compare






Changelog Entry
Fixed
Description
In forced colors, icons were drawn in the background color or dark gray, and non-URL references were not in the link color. They now use system colors in forced colors only (
LinkTextfor links), and Fluent bubbles and the Copy button get a border, as in the default theme.Specific Changes
CSS:
FluentIcon, Copy button (ButtonTextborder in Fluent), Fluent bubbles (CanvasTextborder), external link icons, link references, Fluent pills and chips (also hovered);MicrophoneButton(Highlightwhile dictating)New
forcedColorstests, snap 1:markdown/externalLinkIcon/,markdown/codeBlockCopyButton/,linkDefinition/(Fluent pills and chips allLinkText),speech/recognition/dictating,fluentTheme/telephoneKeypad,fluentTheme/citation.hover;fluentTheme/iconssnaps 1–2; Fluent snaps show message bordersrichCard/animationCard.gif.fluent.htmlsnap 4: send box icons and message border visibleI have added tests and executed them locally
I have updated
CHANGELOG.mdI have updated documentation
Review Checklist
z-index)package.jsonandpackage-lock.jsonreviewed