diff --git a/.storybook/components/checkered-background/CheckeredBackground.css b/.storybook/components/checkered-background/CheckeredBackground.css
index dccca7918..fd4e73597 100644
--- a/.storybook/components/checkered-background/CheckeredBackground.css
+++ b/.storybook/components/checkered-background/CheckeredBackground.css
@@ -1,7 +1,7 @@
.o-ui-sb-checkered-background-preview {
- background-size: 30px 30px;
+ background-size: 1.875rem 1.875rem;
background-color: var(--o-ui-bg-alias-surface);
/* stylelint-disable-next-line */
background-image: linear-gradient(45deg, var(--o-ui-bg-alias-soft-break) 25%, transparent 25%), linear-gradient(-45deg, var(--o-ui-bg-alias-soft-break) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, var(--o-ui-bg-alias-soft-break) 75%), linear-gradient(-45deg, transparent 75%, var(--o-ui-bg-alias-soft-break) 75%);
- background-position: 0 0, 0 15px, 15px -15px, -15px 0;
+ background-position: 0 0, 0 0.9375rem, 0.9375rem -0.9375rem, -0.9375rem 0;
}
diff --git a/.storybook/components/component-info/ComponentInfo.css b/.storybook/components/component-info/ComponentInfo.css
index 611522bca..20d1ca14a 100644
--- a/.storybook/components/component-info/ComponentInfo.css
+++ b/.storybook/components/component-info/ComponentInfo.css
@@ -10,7 +10,7 @@
.o-ui-sb-component-info-item {
display: flex;
align-items: center;
- min-height: 28px;
+ min-height: 1.75rem;
}
.o-ui-sb-component-info-title {
@@ -21,7 +21,7 @@
font-style: normal !important;
width: var(--o-ui-sz-11) !important;
margin: 0 !important;
- min-width: 80px;
+ min-width: 5rem;
}
.o-ui-sb-component-info-value {
@@ -42,7 +42,7 @@
display: flex;
padding: 0;
margin: 0;
- column-gap: 8px;
+ column-gap: 0.5rem;
}
.o-ui-sb-component-info code {
diff --git a/.storybook/components/preview/Preview.css b/.storybook/components/preview/Preview.css
index 389014d36..d9fff6efc 100644
--- a/.storybook/components/preview/Preview.css
+++ b/.storybook/components/preview/Preview.css
@@ -18,7 +18,7 @@
/* SOURCE | EDITABLE LABEL */
.o-ui-sb-preview-editable-label {
position: absolute;
- top: 3px;
+ top: 0.1875rem;
left: 50%;
transform: translateX(-50%);
color: var(--o-ui-white);
@@ -32,7 +32,7 @@
/* SOURCE | EDITOR */
.o-ui-sb-preview-editor {
- font-size: 15px;
+ font-size: 0.9375rem;
overflow-x: auto;
}
@@ -45,7 +45,7 @@
.o-ui-sb-preview-error {
background-color: var(--o-ui-bg-alias-alert-light);
color: var(--o-ui-text-alias-primary);
- font-size: 15px;
+ font-size: 0.9375rem;
padding: var(--o-ui-sp-3) var(--o-ui-sp-5);
margin: 0;
}
diff --git a/.storybook/components/snippet/Snippet.css b/.storybook/components/snippet/Snippet.css
index 81466b8e2..ab65e9288 100644
--- a/.storybook/components/snippet/Snippet.css
+++ b/.storybook/components/snippet/Snippet.css
@@ -4,7 +4,7 @@
.o-ui-sb-snippet pre.prism-code {
padding: var(--o-ui-sp-5) !important;
- font-size: 15px;
+ font-size: 0.9375rem;
border-radius: var(--o-ui-br-4);
overflow-x: auto;
margin: 0;
diff --git a/.storybook/decorators/withCenteredCanvas.jsx b/.storybook/decorators/withCenteredCanvas.jsx
index 66e2aec51..f936172ea 100644
--- a/.storybook/decorators/withCenteredCanvas.jsx
+++ b/.storybook/decorators/withCenteredCanvas.jsx
@@ -22,7 +22,7 @@ export function withCenteredCanvas(story, context) {
{story()}
diff --git a/.storybook/preview.js b/.storybook/preview.js
index 11ac4dab7..ce3dbdf50 100644
--- a/.storybook/preview.js
+++ b/.storybook/preview.js
@@ -69,35 +69,35 @@ export const parameters = {
xs: {
name: "xs (640px)",
styles: {
- width: "640px",
+ width: "40rem",
height: "100%"
}
},
sm: {
name: "sm (768px)",
styles: {
- width: "768px",
+ width: "48rem",
height: "100%"
}
},
md: {
name: "md (1024px)",
styles: {
- width: "1024px",
+ width: "64rem",
height: "100%"
}
},
lg: {
name: "lg (1280px)",
styles: {
- width: "1280px",
+ width: "80rem",
height: "100%"
}
},
xl: {
name: "xl (1536px)",
styles: {
- width: "1536px",
+ width: "96rem",
height: "100%"
}
}
diff --git a/.storybook/styles/app.css b/.storybook/styles/app.css
index 3c647dd1a..b6bc2feb1 100644
--- a/.storybook/styles/app.css
+++ b/.storybook/styles/app.css
@@ -2,5 +2,4 @@ html,
body {
font-family: "TT Interphases Variable", Arial, Helvetica, serif !important;
-webkit-font-smoothing: antialiased;
- font-size: 16px;
}
diff --git a/.storybook/styles/docs.css b/.storybook/styles/docs.css
index e49a67e6f..4c3e546e7 100644
--- a/.storybook/styles/docs.css
+++ b/.storybook/styles/docs.css
@@ -9,7 +9,7 @@
}
.sbdocs.sbdocs-content {
- max-width: 1280px;
+ max-width: 80rem;
font-size: var(--o-ui-fs-4);
}
@@ -21,7 +21,7 @@
/* ARGS TABLE */
.docblock-argstable {
- min-width: 220px;
+ min-width: 13.75rem;
margin-bottom: 0;
}
@@ -72,7 +72,7 @@
}
.docblock-argstable-body td label input[type=radio]:focus {
- outline-offset: 1px;
+ outline-offset: 0.0625rem;
}
.docblock-argstable-body td label span {
@@ -98,13 +98,13 @@
color: var(--o-ui-accent-6) !important;
font-family: var(--orbit-font-family) !important;
font-size: var(--o-ui-fs-2) !important;
- padding-left: 2px !important;
+ padding-left: 0.125rem !important;
}
/* EMPTY BLOCK */
.docblock-emptyblock {
color: var(--o-ui-neutral-6) !important;
- border: 1px dashed var(--o-ui-neutral-2) !important;
+ border: 0.0625rem dashed var(--o-ui-neutral-2) !important;
}
.docblock-emptyblock a {
@@ -114,7 +114,7 @@
/* SOURCE BLOCK */
.docblock-source {
margin-top: var(--o-ui-sp-7) !important;
- margin-bottom: 35px !important;
+ margin-bottom: 2.1875rem !important;
}
.sbdocs.sbdocs-preview,
@@ -171,7 +171,7 @@
}
.sbdocs.sbdocs-h2 {
- border-bottom: 1px solid var(--o-ui-neutral-2);
+ border-bottom: 0.0625rem solid var(--o-ui-neutral-2);
}
.sbdocs.sbdocs-h2,
@@ -209,7 +209,7 @@
border: none !important;
border-radius: 0 !important;
background-color: transparent !important;
- font-size: 15px !important;
+ font-size: 0.9375rem !important;
}
/* ELEMENTS | LINK */
@@ -233,7 +233,7 @@
.sbdocs.sbdocs-a:focus {
border-radius: var(--o-ui-br-4);
background-color: rgba(0, 0, 0, 0.04);
- box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.04);
+ box-shadow: 0 0 0 0.125rem rgba(0, 0, 0, 0.04);
}
.sbdocs .sbdocs-a code {
@@ -250,7 +250,7 @@
/* ELEMENTS | TABLE */
.sbdocs.sbdocs-table tr {
- border-top: 1px solid var(--o-ui-neutral-2);
+ border-top: 0.0625rem solid var(--o-ui-neutral-2);
}
.sbdocs.sbdocs-table .thead tr th {
@@ -259,9 +259,9 @@
}
.sbdocs.sbdocs-table thead tr {
- border-top: 1px solid var(--o-ui-b-alias-low-break);
- border-left: 1px solid var(--o-ui-b-alias-low-break);
- border-right: 1px solid var(--o-ui-b-alias-low-break);
+ border-top: 0.0625rem solid var(--o-ui-b-alias-low-break);
+ border-left: 0.0625rem solid var(--o-ui-b-alias-low-break);
+ border-right: 0.0625rem solid var(--o-ui-b-alias-low-break);
color: var(--o-ui-text-alias-primary);
}
@@ -277,8 +277,8 @@
.sbdocs.sbdocs-table tr td,
.sbdocs.sbdocs-table tr th {
- border-top: 1px solid var(--o-ui-b-alias-low-break);
- border-bottom: 1px solid var(--o-ui-b-alias-low-break);
+ border-top: 0.0625rem solid var(--o-ui-b-alias-low-break);
+ border-bottom: 0.0625rem solid var(--o-ui-b-alias-low-break);
border-left: 0;
border-right: 0;
color: var(--o-ui-text-alias-primary);
@@ -286,7 +286,7 @@
}
.sbdocs.sbdocs-table tbody {
- border: 1px solid var(--o-ui-b-alias-low-break);
+ border: 0.0625rem solid var(--o-ui-b-alias-low-break);
}
.sbdocs.sbdocs-table a {
@@ -319,7 +319,7 @@
}
.sb-show-main details {
- padding: 8px;
+ padding: 0.5rem;
border-radius: var(--o-ui-br-4);
background-color: var(--o-ui-purple-1);
}
@@ -337,12 +337,12 @@
/* ELEMENTS | KBD */
.sbdocs kbd {
line-height: var(--o-ui-lh-1);
- margin: 0 2px;
- padding: 3px 5px;
+ margin: 0 0.125rem;
+ padding: 0.8125rem 0.3125rem;
white-space: nowrap;
- border-radius: 3px;
- font-size: 13px;
- border: 1px solid #EEEEEE;
+ border-radius: 0.8125rem;
+ font-size: 0.8125rem;
+ border: 0.0625rem solid #EEEEEE;
color: rgba(51, 51, 51, 0.9);
background-color: #F8F8F8;
}
@@ -360,7 +360,7 @@
/* ELEMENTS | LINK ICON */
.sbdocs.sbdocs-h1 a {
- margin-left: -28px;
+ margin-left: -1.75rem;
}
.sbdocs.sbdocs-h1 a svg {
@@ -393,8 +393,8 @@
position: absolute;
top: 50%;
left: 50%;
- border-radius: 50px;
- border: 2px solid var(--o-ui-b-alias-low-break);
+ border-radius: var(--o-ui-br-circular);
+ border: 0.125rem solid var(--o-ui-b-alias-low-break);
border-top-color: var(--o-ui-white);
animation: o-ui-sb-spinner 1s linear infinite;
transform: translate(-50%, -50%) rotate(0deg);
@@ -411,11 +411,11 @@
/* Token Specific Styles */
.token-table tr td:last-child {
- padding: 0 0 0 13px !important;
+ padding: 0 0 0 0.8125rem !important;
}
/* HACK OVERRIDES - INPUT */
-@media screen and (max-width: 420px) {
+@media screen and (max-width: 26.25rem) {
.sbdocs .o-ui .o-ui-input {
width: 100%;
}
diff --git a/.storybook/styles/stories.css b/.storybook/styles/stories.css
index 3c47955f2..2a922aa72 100644
--- a/.storybook/styles/stories.css
+++ b/.storybook/styles/stories.css
@@ -7,7 +7,7 @@
}
.border-red {
- border: 1px solid red !important;
+ border: 0.0625rem solid red !important;
}
.red {
@@ -31,7 +31,7 @@
}
.border-blue {
- border: 1px solid blue !important;
+ border: 0.0625rem solid blue !important;
}
.fill-blue {
diff --git a/docs/features/ResponsiveStyles.stories.mdx b/docs/features/ResponsiveStyles.stories.mdx
index 68c4e14c3..26898adc9 100644
--- a/docs/features/ResponsiveStyles.stories.mdx
+++ b/docs/features/ResponsiveStyles.stories.mdx
@@ -47,18 +47,18 @@ The following responsive breakpoints are supported by Orbit [style props](?path=
diff --git a/docs/features/style-props/PropsReferenceTable.jsx b/docs/features/style-props/PropsReferenceTable.jsx
index 3c4c385b6..dbfabb52d 100644
--- a/docs/features/style-props/PropsReferenceTable.jsx
+++ b/docs/features/style-props/PropsReferenceTable.jsx
@@ -30,11 +30,11 @@ export function PropsReferenceTable({ rows }) {
return (
toRowValues(x))}
/>
diff --git a/docs/features/style-props/StyleProps.stories.mdx b/docs/features/style-props/StyleProps.stories.mdx
index 7d434ed2c..80314b999 100644
--- a/docs/features/style-props/StyleProps.stories.mdx
+++ b/docs/features/style-props/StyleProps.stories.mdx
@@ -68,16 +68,16 @@ Since the following user action pseudo-classes are often used, some style props
@@ -373,7 +373,7 @@ Border props (border, borderBottom, borderTop, borderRight, borderLeft) uses an
```jsx
```
diff --git a/docs/features/theming/ThemeSpecificationTable.jsx b/docs/features/theming/ThemeSpecificationTable.jsx
index db2167285..f63864bac 100644
--- a/docs/features/theming/ThemeSpecificationTable.jsx
+++ b/docs/features/theming/ThemeSpecificationTable.jsx
@@ -33,9 +33,9 @@ export function ThemeSpecificationTable({ rows, ...rest }) {
toRowValues(x))}
/>
diff --git a/docs/features/theming/Theming.stories.mdx b/docs/features/theming/Theming.stories.mdx
index 59e91d30d..9afe8458f 100644
--- a/docs/features/theming/Theming.stories.mdx
+++ b/docs/features/theming/Theming.stories.mdx
@@ -32,8 +32,8 @@ An Orbit theme object is composed of the following *8 keys*:
["borderRadii", "border-radius", "border-radius-scale"]
]}
style={{
- marginTop: "24px",
- marginBottom: "24px"
+ marginTop: "1.5rem",
+ marginBottom: "1.5rem"
}}
/>
@@ -43,8 +43,8 @@ When rendered with the `createThemeVars` function, the following CSS variables w
diff --git a/docs/features/tokens/ColorPaletteTable.jsx b/docs/features/tokens/ColorPaletteTable.jsx
index 9adfa6141..0d3c62410 100644
--- a/docs/features/tokens/ColorPaletteTable.jsx
+++ b/docs/features/tokens/ColorPaletteTable.jsx
@@ -24,10 +24,10 @@ export function ColorPaletteTable({ colors }) {
return (
toRowValues(x))}
/>
diff --git a/docs/features/tokens/TokenTable.jsx b/docs/features/tokens/TokenTable.jsx
index f98b0dec2..a2abcff2a 100644
--- a/docs/features/tokens/TokenTable.jsx
+++ b/docs/features/tokens/TokenTable.jsx
@@ -40,10 +40,10 @@ export function TokenTable({ colors }) {
toRowValues(x, docsContext))}
/>
diff --git a/docs/materials/motion/Motion.stories.mdx b/docs/materials/motion/Motion.stories.mdx
index 3bccacf5c..0578dc5af 100644
--- a/docs/materials/motion/Motion.stories.mdx
+++ b/docs/materials/motion/Motion.stories.mdx
@@ -48,8 +48,8 @@ Orbit exposes 5 [durations](?path=/docs/tokens--page#durations), they help conve
Mars is the fourth planet from the Sun and the second-smallest planet in the Solar System.
-
+
-
-
Mars
- Mars is the fourth planet from the Sun and the second-smallest planet in the Solar System.
+ Mars
+ Mars is the fourth planet from the Sun and the second-smallest planet in the Solar System.
diff --git a/packages/components/src/accordion/tests/chromatic/createAccordionTestSuite.jsx b/packages/components/src/accordion/tests/chromatic/createAccordionTestSuite.jsx
index f3279615c..1f2c5eb2e 100644
--- a/packages/components/src/accordion/tests/chromatic/createAccordionTestSuite.jsx
+++ b/packages/components/src/accordion/tests/chromatic/createAccordionTestSuite.jsx
@@ -168,7 +168,7 @@ export function createAccordionTestSuite(element, stories) {
)
.add("narrow container", () =>
-
+
-
Mars
@@ -254,7 +254,7 @@ export function createAccordionTestSuite(element, stories) {
style: { backgroundColor: expandedKeys.includes(key) ? "blue" : "red" },
header,
headingType: H1,
- headingProps: { padding: "10px" }
+ headingProps: { padding: "0.625rem" }
}
)}
>
diff --git a/packages/components/src/alert/tests/chromatic/Alert.chroma.jsx b/packages/components/src/alert/tests/chromatic/Alert.chroma.jsx
index 581569b06..94484cc17 100644
--- a/packages/components/src/alert/tests/chromatic/Alert.chroma.jsx
+++ b/packages/components/src/alert/tests/chromatic/Alert.chroma.jsx
@@ -40,9 +40,9 @@ stories()
.add("styles", () =>
- Launch
- Are you sure you want to launch the space shuttle?
+ Launch
+ Are you sure you want to launch the space shuttle?
);
diff --git a/packages/components/src/autocomplete/src/Autocomplete.css b/packages/components/src/autocomplete/src/Autocomplete.css
index cf2adb778..4483d37e5 100644
--- a/packages/components/src/autocomplete/src/Autocomplete.css
+++ b/packages/components/src/autocomplete/src/Autocomplete.css
@@ -6,7 +6,7 @@
overflow: hidden;
display: inline-flex;
align-items: center;
- border: 1px solid var(--o-ui-b-alias-low-break);
+ border: 0.0625rem solid var(--o-ui-b-alias-low-break);
border-radius: var(--o-ui-br-2);
box-shadow: var(--o-ui-bs-alias-floating);
background-color: var(--o-ui-bg-alias-surface);
@@ -14,6 +14,6 @@
padding-left: var(--o-ui-sp-3);
position: relative;
cursor: default;
- height: calc(var(--o-ui-sz-5) + 2px);
+ height: calc(var(--o-ui-sz-5) + 0.125rem);
min-width: 100%;
}
diff --git a/packages/components/src/autocomplete/tests/chromatic/Autocomplete.stories.tsx b/packages/components/src/autocomplete/tests/chromatic/Autocomplete.stories.tsx
index fc9dd7830..910dd1cb2 100644
--- a/packages/components/src/autocomplete/tests/chromatic/Autocomplete.stories.tsx
+++ b/packages/components/src/autocomplete/tests/chromatic/Autocomplete.stories.tsx
@@ -414,7 +414,7 @@ export const CustomTriggerWidth: AutocompleteStory = {
export const CustomMenuWidth: AutocompleteStory = {
storyName: "custom menu width",
render: () => (
-
+
- Earth
- Mars
- Saturn
@@ -447,9 +447,9 @@ export const DirectionTop: AutocompleteStory = {
export const AlignStart: AutocompleteStory = {
storyName: "align start",
- decorators: [Story =>
],
+ decorators: [Story =>
],
render: () => (
-
+
- Earth
- Mars
- Saturn
@@ -459,9 +459,9 @@ export const AlignStart: AutocompleteStory = {
export const AlignEnd: AutocompleteStory = {
storyName: "align end",
- decorators: [Story =>
],
+ decorators: [Story =>
],
render: () => (
-
+
- Earth
- Mars
- Saturn
@@ -516,7 +516,7 @@ export const Styling: AutocompleteStory = {
- Jupiter
- Mars
-
+
- Earth
- Jupiter
- Mars
diff --git a/packages/components/src/avatar/tests/chromatic/Avatar.stories.tsx b/packages/components/src/avatar/tests/chromatic/Avatar.stories.tsx
index e5d9af843..0c604cda2 100644
--- a/packages/components/src/avatar/tests/chromatic/Avatar.stories.tsx
+++ b/packages/components/src/avatar/tests/chromatic/Avatar.stories.tsx
@@ -121,7 +121,7 @@ export const Styling: AvatarStory = {
-
+
)
};
diff --git a/packages/components/src/avatar/tests/chromatic/AvatarGroup.stories.tsx b/packages/components/src/avatar/tests/chromatic/AvatarGroup.stories.tsx
index fdbf71bfd..4072d8656 100644
--- a/packages/components/src/avatar/tests/chromatic/AvatarGroup.stories.tsx
+++ b/packages/components/src/avatar/tests/chromatic/AvatarGroup.stories.tsx
@@ -223,7 +223,7 @@ export const Styling: AvatarGroupStory = {
-
+
diff --git a/packages/components/src/badge/docs/Circle.jsx b/packages/components/src/badge/docs/Circle.jsx
index 77d4bcd01..9221bb849 100644
--- a/packages/components/src/badge/docs/Circle.jsx
+++ b/packages/components/src/badge/docs/Circle.jsx
@@ -1,5 +1,5 @@
import { Div } from "@components/html";
export function Circle() {
- return
;
+ return
;
}
diff --git a/packages/components/src/badge/docs/Square.jsx b/packages/components/src/badge/docs/Square.jsx
index 3d9903fd6..2f264500e 100644
--- a/packages/components/src/badge/docs/Square.jsx
+++ b/packages/components/src/badge/docs/Square.jsx
@@ -1,5 +1,5 @@
import { Div } from "@components/html";
export function Square() {
- return
;
+ return
;
}
diff --git a/packages/components/src/badge/tests/chromatic/BadgeCount.stories.tsx b/packages/components/src/badge/tests/chromatic/BadgeCount.stories.tsx
index 96a5b0e3b..a74bd6ddd 100644
--- a/packages/components/src/badge/tests/chromatic/BadgeCount.stories.tsx
+++ b/packages/components/src/badge/tests/chromatic/BadgeCount.stories.tsx
@@ -80,7 +80,7 @@ export const Styling: BadgeStory = {
100
-
+
100
diff --git a/packages/components/src/badge/tests/chromatic/BadgeDot.stories.tsx b/packages/components/src/badge/tests/chromatic/BadgeDot.stories.tsx
index 23933f188..d79cc8244 100644
--- a/packages/components/src/badge/tests/chromatic/BadgeDot.stories.tsx
+++ b/packages/components/src/badge/tests/chromatic/BadgeDot.stories.tsx
@@ -35,7 +35,7 @@ export const Styling: BadgeStory = {
-
+
)
};
diff --git a/packages/components/src/badge/tests/chromatic/BadgeIcon.stories.tsx b/packages/components/src/badge/tests/chromatic/BadgeIcon.stories.tsx
index f9aa2b84d..9b37dd2f2 100644
--- a/packages/components/src/badge/tests/chromatic/BadgeIcon.stories.tsx
+++ b/packages/components/src/badge/tests/chromatic/BadgeIcon.stories.tsx
@@ -50,7 +50,7 @@ export const Styling: BadgeStory = {
-
+
diff --git a/packages/components/src/badge/tests/chromatic/BadgeUtils.tsx b/packages/components/src/badge/tests/chromatic/BadgeUtils.tsx
index 661229700..712117a86 100644
--- a/packages/components/src/badge/tests/chromatic/BadgeUtils.tsx
+++ b/packages/components/src/badge/tests/chromatic/BadgeUtils.tsx
@@ -21,7 +21,7 @@ export function CircleBadge({ children, ...rest }: BadgeUtilsProps) {
overlap="circle"
>
{children}
-
+
);
}
diff --git a/packages/components/src/badge/tests/jest/Badge.ssr.test.tsx b/packages/components/src/badge/tests/jest/Badge.ssr.test.tsx
index bb3ecb6c6..94917fe61 100644
--- a/packages/components/src/badge/tests/jest/Badge.ssr.test.tsx
+++ b/packages/components/src/badge/tests/jest/Badge.ssr.test.tsx
@@ -15,7 +15,7 @@ const SquareBadge = forwardRef(({ children, ...rest },
ref={ref}
>
{children}
-
+
);
});
diff --git a/packages/components/src/badge/tests/jest/Badge.test.tsx b/packages/components/src/badge/tests/jest/Badge.test.tsx
index ee2aa11ce..4c79f549f 100644
--- a/packages/components/src/badge/tests/jest/Badge.test.tsx
+++ b/packages/components/src/badge/tests/jest/Badge.test.tsx
@@ -11,7 +11,7 @@ const SquareBadge = forwardRef(({ children, ...rest },
ref={ref}
>
{children}
-
+
);
});
diff --git a/packages/components/src/button/src/Button.css b/packages/components/src/button/src/Button.css
index 7efbafed1..e149eba7a 100644
--- a/packages/components/src/button/src/Button.css
+++ b/packages/components/src/button/src/Button.css
@@ -126,15 +126,15 @@ a.o-ui-button {
/* SECONDARY */
.o-ui-button-secondary {
- border: 1px solid var(--o-ui-b-alias-mid-break);
+ border: 0.0625rem solid var(--o-ui-b-alias-mid-break);
color: var(--o-ui-text-alias-primary);
}
.o-ui-button-secondary:after {
- top: -1px;
- left: -1px;
- right: -1px;
- bottom: -1px;
+ top: -0.0625rem;
+ left: -0.0625rem;
+ right: -0.0625rem;
+ bottom: -0.0625rem;
}
/* SECONDARY | HOVER */
@@ -156,7 +156,7 @@ a.o-ui-button {
/* TERTIARY */
.o-ui-button-tertiary {
background-color: var(--o-ui-transparent);
- border: 1px solid transparent;
+ border: 0.0625rem solid transparent;
color: var(--o-ui-text-alias-primary);
}
@@ -246,8 +246,8 @@ a.o-ui-button {
.o-ui-button-loading:before {
content: "";
- border-radius: 50px;
- border: 2px solid var(--o-ui-b-alias-low-break);
+ border-radius: var(--o-ui-br-circular);
+ border: 0.125rem solid var(--o-ui-b-alias-low-break);
border-top-color: var(--o-ui-b-alias-high-break);
animation: o-ui-button-spinner 1s linear infinite;
transform: rotate(0deg);
@@ -268,7 +268,7 @@ a.o-ui-button {
/* LOADING | SOLID */
.o-ui-button-loading.o-ui-button-solid:before {
- border: solid 2px var(--o-ui-button-loading-spinner-background);
+ border: solid 0.125rem var(--o-ui-button-loading-spinner-background);
border-top-color: var(--o-ui-white);
}
@@ -332,14 +332,14 @@ a.o-ui-button {
/* INHERIT | SECONDARY */
.o-ui-button-inherit-style.o-ui-button-secondary {
color: inherit;
- border: 1px solid currentColor;
+ border: 0.0625rem solid currentColor;
}
.o-ui-button:hover:not(.o-ui-button-loading):not([disabled]).o-ui-button-inherit-style.o-ui-button-secondary,
.o-ui-button-hover:not(.o-ui-button-loading):not([disabled]).o-ui-button-inherit-style.o-ui-button-secondary {
background-color: rgba(0, 0, 0, 0.1);
color: inherit;
- border: 1px solid currentColor;
+ border: 0.0625rem solid currentColor;
}
/* INHERIT | SECONDARY | ACTIVE */
@@ -353,7 +353,7 @@ a.o-ui-button {
.o-ui-button-active:hover:not(.o-ui-button-loading).o-ui-button-inherit-style.o-ui-button-secondary.o-ui-button-basic {
background-color: rgba(0, 0, 0, 0.15);
color: inherit;
- border: 1px solid currentColor;
+ border: 0.0625rem solid currentColor;
}
.o-ui-button:active:not(.o-ui-button-loading).o-ui-button-inherit-style.o-ui-button-secondary .o-ui-button-text,
diff --git a/packages/components/src/card/docs/Card.stories.mdx b/packages/components/src/card/docs/Card.stories.mdx
index 2ca72ad42..353fa7aa2 100644
--- a/packages/components/src/card/docs/Card.stories.mdx
+++ b/packages/components/src/card/docs/Card.stories.mdx
@@ -89,7 +89,7 @@ Or an [illustration](?path=/docs/illustration--horizontal):
-
+
NASA Headquarters
diff --git a/packages/components/src/card/src/Card.css b/packages/components/src/card/src/Card.css
index 0fc21491a..eea4d458b 100644
--- a/packages/components/src/card/src/Card.css
+++ b/packages/components/src/card/src/Card.css
@@ -10,7 +10,7 @@
}
.o-ui-card-outline {
- border: 1px solid var(--o-ui-b-alias-low-break);
+ border: 0.0625rem solid var(--o-ui-b-alias-low-break);
border-radius: var(--o-ui-br-3);
}
@@ -82,7 +82,7 @@
align-items: center;
justify-self: end;
flex-shrink: 0;
- max-width: 200px;
+ max-width: 12.5rem;
width: max-content;
}
diff --git a/packages/components/src/card/tests/chromatic/Card.chroma.jsx b/packages/components/src/card/tests/chromatic/Card.chroma.jsx
index 8d95d08a7..e14deea21 100644
--- a/packages/components/src/card/tests/chromatic/Card.chroma.jsx
+++ b/packages/components/src/card/tests/chromatic/Card.chroma.jsx
@@ -46,7 +46,7 @@ stories()
Nasa
The National Aeronautics and Space Administration
-
+
Nasa
The National Aeronautics and Space Administration
@@ -60,7 +60,7 @@ stories()
The National Aeronautics and Space Administration
-
+
Nasa
The National Aeronautics and Space Administration
@@ -74,7 +74,7 @@ stories()
The National Aeronautics and Space Administration
-
+
Nasa
The National Aeronautics and Space Administration
diff --git a/packages/components/src/card/tests/chromatic/createTestSuite.jsx b/packages/components/src/card/tests/chromatic/createTestSuite.jsx
index 3cdee8167..34c71e198 100644
--- a/packages/components/src/card/tests/chromatic/createTestSuite.jsx
+++ b/packages/components/src/card/tests/chromatic/createTestSuite.jsx
@@ -125,13 +125,13 @@ export function createTestSuite(element, stories) {
.add("illustration 2", () =>
-
+
Nasa
The National Aeronautics and Space Administration
-
+
@@ -529,7 +529,7 @@ export function createTestSuite(element, stories) {
.add("all sections 2", () =>
-
+
Nasa
diff --git a/packages/components/src/checkbox/src/Checkbox.css b/packages/components/src/checkbox/src/Checkbox.css
index e82ddbdd0..76df48b88 100644
--- a/packages/components/src/checkbox/src/Checkbox.css
+++ b/packages/components/src/checkbox/src/Checkbox.css
@@ -1,7 +1,3 @@
-.o-ui {
- --o-ui-checkbox-indeterminate-stroke-width: 5px;
-}
-
.o-ui-checkbox {
outline: transparent;
display: inline-flex;
@@ -22,7 +18,7 @@
display: inline-block;
width: var(--o-ui-sz-3);
height: var(--o-ui-sz-3);
- border: 1px solid var(--o-ui-b-alias-mid-break);
+ border: 0.0625rem solid var(--o-ui-b-alias-mid-break);
background-color: var(--o-ui-bg-alias-surface);
border-radius: var(--o-ui-br-2);
transition: all var(--o-ui-easing-duration-2) var(--o-ui-easing-productive);
@@ -33,10 +29,10 @@
.o-ui-checkbox-box:before {
opacity: 0;
content: "";
- top: -1px;
- left: -1px;
- right: -1px;
- bottom: -1px;
+ top: -0.0625rem;
+ left: -0.0625rem;
+ right: -0.0625rem;
+ bottom: -0.0625rem;
display: block;
position: absolute;
box-shadow: 0 0 0 var(--o-ui-focus-ring-thickness-md) var(--o-ui-focus-ring-color-alias-default);
@@ -110,21 +106,21 @@
}
.o-ui-checkbox-invalid .o-ui-checkbox-box {
- border: 1px solid var(--o-ui-b-alias-alert);
+ border: 0.0625rem solid var(--o-ui-b-alias-alert);
}
.o-ui-checkbox-checked.o-ui-checkbox-invalid .o-ui-checkbox-box {
background-color: var(--o-ui-bg-alias-alert);
- border: 1px solid var(--o-ui-b-alias-alert);
+ border: 0.0625rem solid var(--o-ui-b-alias-alert);
}
.o-ui-checkbox.o-ui-checkbox-invalid:hover .o-ui-checkbox-box {
- border: 1px solid var(--o-ui-b-alias-alert);
+ border: 0.0625rem solid var(--o-ui-b-alias-alert);
}
/* STATE | CHECKED */
.o-ui-checkbox-checked .o-ui-checkbox-box {
- border: 1px solid var(--o-ui-bg-alias-accent);
+ border: 0.0625rem solid var(--o-ui-bg-alias-accent);
background-color: var(--o-ui-bg-alias-accent);
}
@@ -149,13 +145,13 @@
/* STATE | ACTIVE */
.o-ui-checkbox:not(.o-ui-checkbox-checked) input[type="checkbox"]:active:not([disabled]) + .o-ui-checkbox-box,
.o-ui-checkbox:not(.o-ui-checkbox-checked).o-ui-checkbox-active input[type="checkbox"]:not([disabled]) + .o-ui-checkbox-box {
- border: 1px solid var(--o-ui-b-alias-high-break);
+ border: 0.0625rem solid var(--o-ui-b-alias-high-break);
}
/* STATE | HOVER */
.o-ui-checkbox:hover:not(.o-ui-checkbox-checked) > input[type="checkbox"]:not([disabled]) + .o-ui-checkbox-box,
.o-ui-checkbox-hover:not(.o-ui-checkbox-checked):not(.o-ui-checkbox-disabled) .o-ui-checkbox-box {
- border: 1px solid var(--o-ui-b-alias-high-break);
+ border: 0.0625rem solid var(--o-ui-b-alias-high-break);
}
/* STATE | HOVER | CHECKED | FOCUS | BOX */
diff --git a/packages/components/src/counter/src/Counter.css b/packages/components/src/counter/src/Counter.css
index 0036e5309..bb4be3d64 100644
--- a/packages/components/src/counter/src/Counter.css
+++ b/packages/components/src/counter/src/Counter.css
@@ -44,7 +44,7 @@
left: 0;
bottom: 0;
height: 80%;
- border-left: 1px solid currentColor;
+ border-left: 0.0625rem solid currentColor;
opacity: 0.4;
}
@@ -56,7 +56,7 @@
.o-ui-counter-divider.o-ui-counter-reverse::before {
border-left: 0;
- border-right: 1px solid currentColor;
+ border-right: 0.0625rem solid currentColor;
}
/* DIVIDER | COLOR | INHERIT */
diff --git a/packages/components/src/date-input/src/DateInput.css b/packages/components/src/date-input/src/DateInput.css
index a294981ec..276783ff2 100644
--- a/packages/components/src/date-input/src/DateInput.css
+++ b/packages/components/src/date-input/src/DateInput.css
@@ -1,5 +1,5 @@
.o-ui-date-input {
- width: 160px;
+ width: 10rem;
}
/* BUTTON PRESETS */
@@ -23,5 +23,5 @@
/* IN GROUP */
.o-ui-date-input-in-group {
- width: 140px;
+ width: 8.75rem;
}
diff --git a/packages/components/src/date-input/src/DateRangeInput.css b/packages/components/src/date-input/src/DateRangeInput.css
index c48044935..7e99fcf75 100644
--- a/packages/components/src/date-input/src/DateRangeInput.css
+++ b/packages/components/src/date-input/src/DateRangeInput.css
@@ -10,7 +10,7 @@
/* For clear button */
padding-right: var(--o-ui-sp-7);
border-radius: var(--o-ui-br-2);
- border: 1px solid var(--o-ui-date-range-input-border-color);
+ border: 0.0625rem solid var(--o-ui-date-range-input-border-color);
color: var(--o-ui-text-alias-primary);
background-color: var(--o-ui-bg-alias-surface);
}
@@ -84,7 +84,7 @@
outline: transparent;
transition: all .12s ease-in, padding 0s linear;
width: 100%;
- min-height: calc(var(--o-ui-sz-6) - 2px);
+ min-height: calc(var(--o-ui-sz-6) - 0.125rem);
background-color: transparent;
}
@@ -102,7 +102,7 @@
.o-ui-date-range-input-divider[aria-orientation="vertical"] {
flex-shrink: 0;
align-self: auto;
- height: 25px !important;
+ height: 1.5625rem !important;
}
/* CLEAR BUTTON */
@@ -130,5 +130,5 @@
/* IN GROUP */
.o-ui-date-range-input-in-group:not(.o-ui-date-range-input-fluid) {
width: 100%;
- max-width: 300px;
+ max-width: 18.75rem;
}
diff --git a/packages/components/src/date-input/tests/chromatic/createDateInputTestSuite.jsx b/packages/components/src/date-input/tests/chromatic/createDateInputTestSuite.jsx
index da5d58027..14c646933 100644
--- a/packages/components/src/date-input/tests/chromatic/createDateInputTestSuite.jsx
+++ b/packages/components/src/date-input/tests/chromatic/createDateInputTestSuite.jsx
@@ -81,9 +81,9 @@ export function createDateInputTestSuite(element, stories) {
-
+
-
+
);
}
diff --git a/packages/components/src/date-input/tests/chromatic/createDateRangeInputTestSuite.jsx b/packages/components/src/date-input/tests/chromatic/createDateRangeInputTestSuite.jsx
index 1ffeb14c1..16a99181b 100644
--- a/packages/components/src/date-input/tests/chromatic/createDateRangeInputTestSuite.jsx
+++ b/packages/components/src/date-input/tests/chromatic/createDateRangeInputTestSuite.jsx
@@ -79,7 +79,7 @@ export function createDateRangeInputTestSuite(element, stories) {
-
+
);
}
diff --git a/packages/components/src/dialog/src/Dialog.css b/packages/components/src/dialog/src/Dialog.css
index 1c73fe853..224e4c605 100644
--- a/packages/components/src/dialog/src/Dialog.css
+++ b/packages/components/src/dialog/src/Dialog.css
@@ -29,7 +29,7 @@
grid-template-rows: min-content auto;
}
-@media screen and (min-width: 768px) {
+@media screen and (min-width: 48rem) {
.o-ui-dialog {
grid-template-rows: unset;
grid-template-areas: "image aside";
@@ -48,15 +48,15 @@
/* DIALOG | SIZES */
.o-ui-dialog-sm {
- width: 544px;
+ width: 34rem;
}
.o-ui-dialog-md {
- width: 800px;
+ width: 50rem;
}
.o-ui-dialog-lg {
- width: 960px;
+ width: 60rem;
}
/* DIALOG | IMAGE & ILLUSTRATION */
@@ -68,7 +68,7 @@
overflow: hidden;
}
-@media screen and (min-width: 768px) {
+@media screen and (min-width: 48rem) {
.o-ui-dialog-image,
.o-ui-dialog-illustration {
width: var(--o-ui-sz-15);
diff --git a/packages/components/src/dialog/tests/chromatic/Dialog.stories.tsx b/packages/components/src/dialog/tests/chromatic/Dialog.stories.tsx
index a4f41d049..d902e9562 100644
--- a/packages/components/src/dialog/tests/chromatic/Dialog.stories.tsx
+++ b/packages/components/src/dialog/tests/chromatic/Dialog.stories.tsx
@@ -446,7 +446,7 @@ export const WrapperClassName: DialogStory = {
export const WrapperStyle: DialogStory = {
storyName: "wrapper style",
render: () => (
-
+
Iconic Arecibo Observatory collapses
This year, the National Science Foundation (NSF) said farewell to the iconic Arecibo Observatory in Puerto Rico after two major cable failures led to the radio telescope's collapse. The 57-year old structure was once the largest radio dish telescope in the world, and researchers have used its capabilities to make significant breakthroughs in astronomy. The Arecibo Observatory also served as the dramatic backdrop to films like "Contact" and "Goldeneye."
@@ -520,7 +520,7 @@ export const ZoomOut: DialogStory = {
export const Style: DialogStory = {
storyName: "style",
render: () => (
-
+
Iconic Arecibo Observatory collapses
This year, the National Science Foundation (NSF) said farewell to the iconic Arecibo Observatory in Puerto Rico after two major cable failures led to the radio telescope's collapse. The 57-year old structure was once the largest radio dish telescope in the world, and researchers have used its capabilities to make significant breakthroughs in astronomy. The Arecibo Observatory also served as the dramatic backdrop to films like "Contact" and "Goldeneye."
diff --git a/packages/components/src/disclosure/tests/chromatic/DisclosureArrow.stories.tsx b/packages/components/src/disclosure/tests/chromatic/DisclosureArrow.stories.tsx
index 702d3183f..c32ff4ed6 100644
--- a/packages/components/src/disclosure/tests/chromatic/DisclosureArrow.stories.tsx
+++ b/packages/components/src/disclosure/tests/chromatic/DisclosureArrow.stories.tsx
@@ -50,7 +50,7 @@ export const Styling:DisclosureArrowStory = {
render: () => (
-
+
)
};
diff --git a/packages/components/src/divider/docs/Divider.stories.mdx b/packages/components/src/divider/docs/Divider.stories.mdx
index 165287f07..3e77b5ca9 100644
--- a/packages/components/src/divider/docs/Divider.stories.mdx
+++ b/packages/components/src/divider/docs/Divider.stories.mdx
@@ -62,7 +62,7 @@ Or vertically:
-
+
diff --git a/packages/components/src/divider/src/Divider.css b/packages/components/src/divider/src/Divider.css
index b0fe4d581..8b1c8bd0d 100644
--- a/packages/components/src/divider/src/Divider.css
+++ b/packages/components/src/divider/src/Divider.css
@@ -16,7 +16,7 @@
}
.o-ui-divider[aria-orientation="horizontal"]:not(.o-ui-divider-has-label) {
- border-bottom: 1px solid var(--o-ui-b-alias-low-break);
+ border-bottom: 0.0625rem solid var(--o-ui-b-alias-low-break);
}
/* LABELLED */
@@ -29,7 +29,7 @@
.o-ui-divider-has-label[aria-orientation="horizontal"]::after {
content: "";
flex: 1;
- border-bottom: 1px solid var(--o-ui-b-alias-low-break);
+ border-bottom: 0.0625rem solid var(--o-ui-b-alias-low-break);
}
.o-ui-divider-has-label[aria-orientation="horizontal"]::before {
@@ -50,7 +50,7 @@
}
.o-ui-divider[aria-orientation="vertical"]:not(.o-ui-divider-has-label) {
- border-left: 1px solid var(--o-ui-b-alias-low-break);
+ border-left: 0.0625rem solid var(--o-ui-b-alias-low-break);
}
/* VERTICAL | LABELLED */
@@ -62,7 +62,7 @@
.o-ui-divider-has-label[aria-orientation="vertical"]::after {
content: "";
flex: 1;
- border-left: 1px solid var(--o-ui-b-alias-low-break);
+ border-left: 0.0625rem solid var(--o-ui-b-alias-low-break);
}
.o-ui-divider-has-label[aria-orientation="vertical"]::before {
diff --git a/packages/components/src/divider/tests/chromatic/Divider.stories.tsx b/packages/components/src/divider/tests/chromatic/Divider.stories.tsx
index c4c3b1a2d..c0eba1823 100644
--- a/packages/components/src/divider/tests/chromatic/Divider.stories.tsx
+++ b/packages/components/src/divider/tests/chromatic/Divider.stories.tsx
@@ -89,7 +89,7 @@ export const Styling: DividerStory = {
-
+
)
};
diff --git a/packages/components/src/divider/tests/chromatic/DividerVertical.stories.tsx b/packages/components/src/divider/tests/chromatic/DividerVertical.stories.tsx
index a3ed04c7b..a084486d8 100644
--- a/packages/components/src/divider/tests/chromatic/DividerVertical.stories.tsx
+++ b/packages/components/src/divider/tests/chromatic/DividerVertical.stories.tsx
@@ -106,7 +106,7 @@ export const Styling: DividerStory = {
-
+
)
};
diff --git a/packages/components/src/dot/tests/chromatic/Dot.stories.tsx b/packages/components/src/dot/tests/chromatic/Dot.stories.tsx
index 59f82f186..c28dabde6 100644
--- a/packages/components/src/dot/tests/chromatic/Dot.stories.tsx
+++ b/packages/components/src/dot/tests/chromatic/Dot.stories.tsx
@@ -61,12 +61,12 @@ export const Styling: DotStory = {
-
+
Habitable
Habitable
- Habitable
+ Habitable
)
diff --git a/packages/components/src/field/tests/chromatic/Field.stories.tsx b/packages/components/src/field/tests/chromatic/Field.stories.tsx
index 206c99abf..12c6c14a9 100644
--- a/packages/components/src/field/tests/chromatic/Field.stories.tsx
+++ b/packages/components/src/field/tests/chromatic/Field.stories.tsx
@@ -301,7 +301,7 @@ export const Styling: FieldStory = {
Launch date
-
+
Launch date
diff --git a/packages/components/src/field/tests/chromatic/GroupField.stories.tsx b/packages/components/src/field/tests/chromatic/GroupField.stories.tsx
index 7700e0c18..637f7043d 100644
--- a/packages/components/src/field/tests/chromatic/GroupField.stories.tsx
+++ b/packages/components/src/field/tests/chromatic/GroupField.stories.tsx
@@ -120,7 +120,7 @@ export const Styling: GroupFieldStory = {
3
-
+
1
2
diff --git a/packages/components/src/form/tests/chromatic/Fieldset.stories.tsx b/packages/components/src/form/tests/chromatic/Fieldset.stories.tsx
index b0b538761..aabeac110 100644
--- a/packages/components/src/form/tests/chromatic/Fieldset.stories.tsx
+++ b/packages/components/src/form/tests/chromatic/Fieldset.stories.tsx
@@ -166,7 +166,7 @@ export const Styling: FieldsetStory = {
-
+
First name
diff --git a/packages/components/src/form/tests/chromatic/Form.stories.tsx b/packages/components/src/form/tests/chromatic/Form.stories.tsx
index 52f302abc..42be047c1 100644
--- a/packages/components/src/form/tests/chromatic/Form.stories.tsx
+++ b/packages/components/src/form/tests/chromatic/Form.stories.tsx
@@ -222,7 +222,7 @@ export const Styling: FormStory = {
-