fix: preserve shared switch dimensions
This commit is contained in:
@@ -122,6 +122,12 @@ describe('WorkspacePrimitives', () => {
|
|||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
it('keeps shared switches from inheriting text-field dimensions', () => {
|
||||||
|
expect(stylesheet).toMatch(
|
||||||
|
/\.toggle-row input\s*\{[^}]*min-width:\s*38px;[^}]*width:\s*38px;[^}]*min-height:\s*22px;[^}]*height:\s*22px;[^}]*margin:\s*0;/u
|
||||||
|
)
|
||||||
|
})
|
||||||
|
|
||||||
it('uses the design-system page gutters at each window width', () => {
|
it('uses the design-system page gutters at each window width', () => {
|
||||||
expect(stylesheet).toMatch(/--page-gutter:\s*32px;/u)
|
expect(stylesheet).toMatch(/--page-gutter:\s*32px;/u)
|
||||||
expect(stylesheet).toMatch(
|
expect(stylesheet).toMatch(
|
||||||
|
|||||||
@@ -6034,8 +6034,11 @@ details.settings-section > :not(summary) + :not(summary) {
|
|||||||
|
|
||||||
.toggle-row input {
|
.toggle-row input {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
min-width: 38px;
|
||||||
width: 38px;
|
width: 38px;
|
||||||
|
min-height: 22px;
|
||||||
height: 22px;
|
height: 22px;
|
||||||
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border: 1px solid var(--border-control);
|
border: 1px solid var(--border-control);
|
||||||
border-radius: 999px;
|
border-radius: 999px;
|
||||||
|
|||||||
Reference in New Issue
Block a user