Skip to content

Commit c775e59

Browse files
committed
fix(radio,styles): use latest CSS
1 parent 4f62cc5 commit c775e59

File tree

6 files changed

+33
-7
lines changed

6 files changed

+33
-7
lines changed

.changeset/stale-candies-camp.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
'@spectrum-web-components/dropzone': patch
44
'@spectrum-web-components/illustrated-message': patch
55
'@spectrum-web-components/menu': patch
6+
'@spectrum-web-components/radio': patch
67
'@spectrum-web-components/status-light': patch
78
'@spectrum-web-components/styles': patch
89
'@spectrum-web-components/switch': patch

packages/radio/src/radio.css

+12-7
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,17 @@ governing permissions and limitations under the License.
2222
}
2323

2424
/**
25-
* Work around for https://github.com/adobe/spectrum-css/issues/2251
26-
**/
27-
:host([dir='rtl']) #button:after {
28-
transform: translateX(50%) translateY(-50%);
25+
* @todo updated designs call for the radio button to be visible;
26+
* however as that can cause layout shifts, hold this update until a breaking release.
27+
*/
28+
:host([readonly]) #button {
29+
clip: rect(1px, 1px, 1px, 1px);
30+
clip-path: inset(50%);
31+
position: fixed;
32+
inset-block-end: 100%;
33+
inset-inline-end: 100%;
2934
}
3035

31-
/**
32-
* End workaround
33-
**/
36+
:host([readonly]) #label {
37+
margin-inline-start: 0;
38+
}

tools/theme/src/express/theme-core-tokens.css

+5
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ governing permissions and limitations under the License.
4040
}
4141
}
4242

43+
/* Manual override: can remove after cutover */
44+
:host {
45+
--system-radio-button-background-color: var(--spectrum-gray-50);
46+
}
47+
4348
#scale,
4449
#theme {
4550
width: 100%;

tools/theme/src/express/theme.css

+5
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ governing permissions and limitations under the License.
4141
}
4242
}
4343

44+
/* Manual override: can remove after cutover */
45+
:host {
46+
--system-radio-button-background-color: var(--spectrum-gray-50);
47+
}
48+
4449
#scale,
4550
#theme {
4651
width: 100%;

tools/theme/src/theme-core-tokens.css

+5
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ governing permissions and limitations under the License.
3535
}
3636
}
3737

38+
/* Manual override: can remove after cutover */
39+
:host {
40+
--system-radio-button-background-color: var(--spectrum-gray-50);
41+
}
42+
3843
#scale,
3944
#theme {
4045
width: 100%;

tools/theme/src/theme.css

+5
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ governing permissions and limitations under the License.
3636
}
3737
}
3838

39+
/* Manual override: can remove after cutover */
40+
:host {
41+
--system-radio-button-background-color: var(--spectrum-gray-50);
42+
}
43+
3944
#scale,
4045
#theme {
4146
width: 100%;

0 commit comments

Comments
 (0)