Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions semcore/checkbox/__tests__/checkbox.browser-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ test.describe(`${TAG.VISUAL}`, () => {
if (item.size == 'l') {
await expect(locators.valueCheckmark(page)).toHaveCSS(
'height',
'20px',
'24px',
);
await expect(locators.valueCheckmark(page)).toHaveCSS(
'width',
'20px',
'24px',
);
await expect(locators.checkboxText(page)).toHaveCSS(
'margin-left',
Expand All @@ -81,15 +81,15 @@ test.describe(`${TAG.VISUAL}`, () => {
} else { // verify M checkbox styles
await expect(locators.valueCheckmark(page)).toHaveCSS(
'height',
'16px',
'20px',
);
await expect(locators.valueCheckmark(page)).toHaveCSS(
'width',
'16px',
'20px',
);
await expect(locators.checkboxText(page)).toHaveCSS(
'margin-left',
'6px',
'8px',
);
await expect(locators.checkboxText(page)).toHaveCSS(
'font-size',
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 5 additions & 11 deletions semcore/checkbox/src/style/checkbox.shadow.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,14 @@ SLabel {
}

SText {
margin-left: var(--intergalactic-spacing-1-5x, 6px);
margin-left: var(--intergalactic-spacing-2x, 8px);
color: var(--intergalactic-text-primary, oklch(0.23 0.009 245));

&[disabled] {
opacity: var(--intergalactic-disabled-opacity, 0.4);
}
}

SText[size='l'] {
margin-left: var(--intergalactic-spacing-2x, 8px);
}

SText[color] {
color: var(--color);
}
Expand Down Expand Up @@ -73,19 +69,17 @@ SCheckbox {
}

SCheckbox[size='l'] {
margin-top: var(--intergalactic-spacing-05x, 2px);
width: var(--intergalactic-spacing-5x, 20px);
height: var(--intergalactic-spacing-5x, 20px);
width: var(--intergalactic-spacing-6x, 24px);
height: var(--intergalactic-spacing-6x, 24px);

&[checked]::after {
background-image: var(--intergalactic-assets-checkmark-l, url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxNCAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTIuNCAyLjQ1MjIxTDUuMzA0NCA5LjU0NzgyTDEuNjAwMDEgNS44NDM0MyIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg=="));
}
}

SCheckbox[size='m'] {
margin-top: var(--intergalactic-spacing-05x, 2px);
width: var(--intergalactic-spacing-4x, 16px);
height: var(--intergalactic-spacing-4x, 16px);
width: var(--intergalactic-spacing-5x, 20px);
height: var(--intergalactic-spacing-5x, 20px);

&[checked]::after {
background-image: var(--intergalactic-assets-checkmark-m, url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTAiIHZpZXdCb3g9IjAgMCAxMiAxMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTAuMzEwNyAyLjE2NzkxTDQuNjQ2NDUgNy44MzIxMkwxLjY4OTM0IDQuODc1MDEiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZT0id2hpdGUiLz48L3N2Zz4="));
Expand Down
1 change: 1 addition & 0 deletions semcore/dropdown-menu/src/style/dropdown-menu.shadow.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ SDropdownNestingItem SDropdownMenuItemContainer {

SItemHint {
color: var(--intergalactic-text-secondary, oklch(0.182 0.045 244.8 / 0.593));
margin-top: var(--intergalactic-spacing-1x, 4px);
}

SScrollContainer {
Expand Down
20 changes: 10 additions & 10 deletions semcore/radio/__tests__/radio.browser-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,15 @@ test.describe(`${TAG.VISUAL}`, () => {

const markWidth = await mark.evaluate((el) => getComputedStyle(el).width);
const markHeight = await mark.evaluate((el) => getComputedStyle(el).height);
expect(markWidth).toBe('16px');
expect(markHeight).toBe('16px');
expect(markWidth).toBe('20px');
expect(markHeight).toBe('20px');

const styles = await labelText.evaluate((el) => {
const s = getComputedStyle(el);
return { fontSize: s.fontSize, marginLeft: s.marginLeft };
});
expect(styles.fontSize).toBe('14px');
expect(styles.marginLeft).toBe('6px');
expect(styles.marginLeft).toBe('8px');
}
});
} else {
Expand All @@ -99,8 +99,8 @@ test.describe(`${TAG.VISUAL}`, () => {

const markWidth = await mark.evaluate((el) => getComputedStyle(el).width);
const markHeight = await mark.evaluate((el) => getComputedStyle(el).height);
expect(markWidth).toBe('20px');
expect(markHeight).toBe('20px');
expect(markWidth).toBe('24px');
expect(markHeight).toBe('24px');

const styles = await labelText.evaluate((el) => {
const s = getComputedStyle(el);
Expand Down Expand Up @@ -183,15 +183,15 @@ test.describe(`${TAG.VISUAL}`, () => {

const markWidth = await mark.evaluate((el) => getComputedStyle(el).width);
const markHeight = await mark.evaluate((el) => getComputedStyle(el).height);
expect(markWidth).toBe('16px');
expect(markHeight).toBe('16px');
expect(markWidth).toBe('20px');
expect(markHeight).toBe('20px');

const styles = await labelText.evaluate((el) => {
const s = getComputedStyle(el);
return { fontSize: s.fontSize, marginLeft: s.marginLeft };
});
expect(styles.fontSize).toBe('14px');
expect(styles.marginLeft).toBe('6px');
expect(styles.marginLeft).toBe('8px');
}
});
} else {
Expand All @@ -203,8 +203,8 @@ test.describe(`${TAG.VISUAL}`, () => {

const markWidth = await mark.evaluate((el) => getComputedStyle(el).width);
const markHeight = await mark.evaluate((el) => getComputedStyle(el).height);
expect(markWidth).toBe('20px');
expect(markHeight).toBe('20px');
expect(markWidth).toBe('24px');
expect(markHeight).toBe('24px');

const styles = await labelText.evaluate((el) => {
const s = getComputedStyle(el);
Expand Down
18 changes: 5 additions & 13 deletions semcore/radio/src/style/radio.shadow.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,10 @@ SRadio {
cursor: pointer;

SText {
margin-left: var(--intergalactic-spacing-1-5x, 6px);
margin-left: var(--intergalactic-spacing-2x, 8px);
color: var(--intergalactic-text-primary, oklch(0.23 0.009 245));
}

&[size='l'] {
SText {
margin-left: var(--intergalactic-spacing-2x, 8px);
}
}

SText[color] {
color: var(--color);
}
Expand All @@ -30,8 +24,6 @@ SValue {
outline: none;
z-index: 0;

margin-top: var(--intergalactic-spacing-05x, 2px);

&::before {
content: '';
position: absolute;
Expand Down Expand Up @@ -69,8 +61,8 @@ SValue[disabled] {
}

SValue[size='m'] {
width: 16px;
height: 16px;
width: var(--intergalactic-spacing-5x, 20px);
height: var(--intergalactic-spacing-5x, 20px);

SInvalidPattern:before {
width: 14px;
Expand All @@ -79,8 +71,8 @@ SValue[size='m'] {
}

SValue[size='l'] {
width: 20px;
height: 20px;
width: var(--intergalactic-spacing-6x, 24px);
height: var(--intergalactic-spacing-6x, 24px);

SInvalidPattern:before {
width: 18px;
Expand Down
10 changes: 5 additions & 5 deletions semcore/select/src/style/select.shadow.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SOptionCheckbox {
margin-top: var(--intergalactic-spacing-05x, 2px);
margin-right: var(--intergalactic-spacing-1-5x, 6px);
margin-right: var(--intergalactic-spacing-2x, 8px);
margin-bottom: auto;
position: relative;
flex-shrink: 0;
Expand All @@ -17,8 +17,8 @@ SOptionCheckbox {
border-radius: var(--intergalactic-addon-rounded, 4px);
}

width: 16px;
height: 16px;
width: var(--intergalactic-spacing-5x, 20px);
height: var(--intergalactic-spacing-5x, 20px);
}

SOptionCheckbox::after {
Expand All @@ -38,8 +38,8 @@ SOptionCheckbox[selected]::after {
}

SOptionCheckbox[size='l'] {
width: 20px;
height: 20px;
width: var(--intergalactic-spacing-6x, 24px);
height: var(--intergalactic-spacing-6x, 24px);
margin-right: var(--intergalactic-spacing-2x, 8px);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const Demo = () => {
/>
</Flex>
{checked.map((value, index) => (
<Flex key={index} ml={6}>
<Flex key={index} ml={7}>
<Checkbox
mb={3}
key={index}
Expand Down