Skip to content

Commit 4da25a5

Browse files
Vriosrada/captions focus contrast (#6025)
* Fixing contrast on focus captions * Adding changelog * Update packages/react-composites CallWithChatComposite browser test snapshots * Update packages/react-composites CallWithChatComposite browser test snapshots * Update packages/react-composites CallComposite browser test snapshots * Update packages/react-composites CallComposite browser test snapshots * Update packages/react-composites CallComposite browser test snapshots --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 06d5835 commit 4da25a5

26 files changed

Lines changed: 27 additions & 3 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "patch",
3+
"area": "fix",
4+
"workstream": "A11y",
5+
"comment": "Fixing contrast on focus captions",
6+
"packageName": "@azure/communication-react",
7+
"email": "vriosrada@microsoft.com",
8+
"dependentChangeType": "patch"
9+
}

packages/react-components/src/components/styles/Captions.style.ts

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,12 @@ export const captionsBannerFullHeightClassName = (theme: ITheme): string => {
186186
export const loadingBannerStyles = (formFactor: 'default' | 'compact'): IStackStyles => {
187187
return {
188188
root: {
189-
height: formFactor === 'compact' ? '4.5rem' : '8.75rem'
189+
height: formFactor === 'compact' ? '4.5rem' : '8.75rem',
190+
selectors: {
191+
':focus-visible': {
192+
outlineColor: 'Highlight'
193+
}
194+
}
190195
}
191196
};
192197
};
@@ -201,7 +206,12 @@ export const loadingBannerFullHeightStyles = (theme: ITheme): IStackStyles => {
201206
width: '100%',
202207
position: 'absolute',
203208
left: 0,
204-
backgroundColor: theme.palette.white
209+
backgroundColor: theme.palette.white,
210+
selectors: {
211+
':focus-visible': {
212+
outlineColor: 'Highlight'
213+
}
214+
}
205215
}
206216
};
207217
};
@@ -211,7 +221,12 @@ export const loadingBannerFullHeightStyles = (theme: ITheme): IStackStyles => {
211221
*/
212222
export const captionsContentContainerClassName = mergeStyles({
213223
width: '100%',
214-
paddingInlineEnd: _pxToRem(4)
224+
paddingInlineEnd: _pxToRem(4),
225+
selectors: {
226+
':focus-visible': {
227+
outlineColor: 'Highlight'
228+
}
229+
}
215230
});
216231

217232
/**
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)