Skip to content

Commit fdb651c

Browse files
authored
[web-components][fix] fix missing focus state in forced colors on checked switch (#35204)
1 parent b41d8a3 commit fdb651c

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "prerelease",
3+
"comment": "fix: bug in switch checked story in forced-colors mode",
4+
"packageName": "@fluentui/web-components",
5+
"email": "rupertdavid@microsoft.com",
6+
"dependentChangeType": "patch"
7+
}

packages/web-components/src/switch/switch.stories.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ export const Default: Story = {};
5656

5757
export const Checked: Story = {
5858
args: {
59-
slot: 'input',
6059
checked: true,
6160
},
6261
};

packages/web-components/src/switch/switch.styles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ export const styles = css`
121121
:host(:not([slot='input']):focus-visible) {
122122
border-color: ${colorTransparentStroke};
123123
outline: ${strokeWidthThick} solid ${colorTransparentStroke};
124+
outline-offset: 1px;
124125
box-shadow: ${shadow4}, 0 0 0 2px ${colorStrokeFocus2};
125126
}
126127
`.withBehaviors(

0 commit comments

Comments
 (0)