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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions semcore/checkbox/__tests__/checkbox.browser-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ test.describe(`${TAG.VISUAL}`, () => {

await test.step(`Verify size ${item.size} checkmark and label styles`, async () => {
const isL = item.size === 'l';
await expect(locators.valueCheckmark(page)).toHaveCSS('height', isL ? '20px' : '16px');
await expect(locators.valueCheckmark(page)).toHaveCSS('width', isL ? '20px' : '16px');
await expect(locators.checkboxText(page)).toHaveCSS('margin-left', isL ? '8px' : '6px');
await expect(locators.valueCheckmark(page)).toHaveCSS('height', isL ? '24px' : '20px');
await expect(locators.valueCheckmark(page)).toHaveCSS('width', isL ? '24px' : '20px');
await expect(locators.checkboxText(page)).toHaveCSS('margin-left', '8px');
await expect(locators.checkboxText(page)).toHaveCSS('font-size', isL ? '16px' : '14px');
});

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.
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
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ function Shape(
) {
const SPointShape = Root;
const SPatternSymbol = PatternSymbol;
const SCheckbox = Checkbox;
const {
styles,
size,
Expand Down Expand Up @@ -206,7 +207,7 @@ function Shape(
if (shape === 'Checkbox') {
return sstyled(styles)(
<>
<Checkbox
<SCheckbox
size={size}
checked={checked}
theme={color}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@ SLegendItem[transparent] {
opacity: 0.3;
}

SCheckbox[size='m'] > span:first-of-type {
width: var(--intergalactic-spacing-4x, 16px);
height: var(--intergalactic-spacing-4x, 16px);
margin-top: var(--intergalactic-spacing-05x, 2px);
}

SCheckbox[size='l'] > span:first-of-type {
width: var(--intergalactic-spacing-5x, 20px);
height: var(--intergalactic-spacing-5x, 20px);
margin-top: var(--intergalactic-spacing-05x, 2px);
}

SPointShape[color] {
background-color: var(--color);
margin-right: var(--intergalactic-spacing-1-5x, 6px);
Expand Down
4 changes: 2 additions & 2 deletions semcore/radio/__tests__/radio.browser-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export const locators = {
};

const sizeStyles = {
m: { mark: '16px', fontSize: '14px', textMargin: '6px' },
l: { mark: '20px', fontSize: '16px', textMargin: '8px' },
m: { mark: '20px', fontSize: '14px', textMargin: '8px' },
l: { mark: '24px', fontSize: '16px', textMargin: '8px' },
};

const expectSizeStyles = async (page: Page, size: 'm' | 'l', { withTextMargin }: { withTextMargin: boolean }) => {
Expand Down
26 changes: 9 additions & 17 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,22 +61,22 @@ 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;
height: 14px;
width: 18px;
height: 18px;
}
}

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

SInvalidPattern:before {
width: 18px;
height: 18px;
width: 22px;
height: 22px;
}
}

Expand Down
8 changes: 4 additions & 4 deletions semcore/select/src/style/select.shadow.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ SOptionCheckbox {
border-radius: var(--intergalactic-addon-rounded, 4px);
}

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

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

SOptionCheckbox[size='l'] {
width: 20px;
height: 20px;
width: var(--intergalactic-spacing-5x, 20px);
height: var(--intergalactic-spacing-5x, 20px);
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
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const Demo = () => {
);

return (
<Flex mt={3} alignItems='flex-start' flexWrap>
<Plot height={120} width={120} mt={6} mb={6} data={data}>
<Flex mt={3} gap={6} alignItems='flex-start' flexWrap>
<Plot height={160} width={160} mt={6} mb={6} data={data}>
<Donut>
{Object.keys(data).map((name, index) => (
<Donut.Pie
Expand All @@ -34,7 +34,7 @@ const Demo = () => {
))}
</Donut>
</Plot>
<Flex direction='column'>
<Flex direction='column' gap={2}>
{Object.keys(data).map((name, index) => {
return (
<Checkbox key={name} id={name} theme={`chart-palette-order-${index + 1}`}>
Expand Down
Loading