Skip to content

Commit 00458f3

Browse files
authored
[web-components] fix: remove logical properties to fix spinner in rtl (#33654)
1 parent 1e110d6 commit 00458f3

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
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: revert logical properties in spinner to support rtl\"",
4+
"packageName": "@fluentui/web-components",
5+
"email": "rupertdavid@microsoft.com",
6+
"dependentChangeType": "patch"
7+
}

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ export const styles = css`
9393
9494
.start {
9595
overflow: hidden;
96-
inset-inline-end: 50%;
96+
right: 50%;
9797
}
9898
9999
.end {
100100
overflow: hidden;
101-
inset-inline-start: 50%;
101+
left: 50%;
102102
}
103103
104104
.indicator {
@@ -107,7 +107,7 @@ export const styles = css`
107107
border-radius: 50%;
108108
border: var(--indicatorSize) solid transparent;
109109
border-block-start-color: currentcolor;
110-
border-inline-end-color: currentcolor;
110+
border-right-color: currentcolor;
111111
}
112112
113113
:host(${invertedState}) .indicator {
@@ -171,7 +171,7 @@ export const styles = css`
171171
.indicator {
172172
border-color: Canvas;
173173
border-block-start-color: Highlight;
174-
border-inline-end-color: Highlight;
174+
border-right-color: Highlight;
175175
}
176176
`),
177177
);

0 commit comments

Comments
 (0)