Skip to content

Commit cd0a0db

Browse files
Update design system (#3027)
* Update dep * Update to more specific `rounded` syntax
1 parent 002af42 commit cd0a0db

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+78
-66
lines changed

app/components/CopyCode.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function CopyCodeModal({
4646
return (
4747
<Modal isOpen={isOpen} onDismiss={onDismiss} title={modalTitle} width="free">
4848
<Modal.Section>
49-
<pre className="text-mono-md bg-default border-secondary w-full rounded border px-4 py-3 tracking-normal! normal-case!">
49+
<pre className="text-mono-md bg-default border-secondary w-full rounded-md border px-4 py-3 tracking-normal! normal-case!">
5050
{children}
5151
</pre>
5252
</Modal.Section>

app/components/DocsPopover.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const DocsPopoverLink = ({ href, linkText }: DocsPopoverLinkProps) => (
2727
rel="noreferrer"
2828
>
2929
<div className="border-secondary mx-2 border-b py-1.5">
30-
<div className="text-sans-md text-raise group-hover:bg-tertiary relative -ml-2 inline-block rounded py-1 pr-7 pl-2">
30+
<div className="text-sans-md text-raise group-hover:bg-tertiary relative -ml-2 inline-block rounded-md py-1 pr-7 pl-2">
3131
<span className="inline-block max-w-300 truncate align-middle">{linkText}</span>
3232
<OpenLink12Icon className="text-secondary absolute top-1.5 ml-2 translate-y-px" />
3333
</div>
@@ -47,7 +47,7 @@ export const DocsPopover = ({ heading, icon, summary, links }: DocsPopoverProps)
4747
const title = `Learn about ${heading}`
4848
return (
4949
<Popover>
50-
<PopoverButton title={title} className="headless-hide-focus rounded">
50+
<PopoverButton title={title} className="headless-hide-focus rounded-md">
5151
<div className={cn(buttonStyle({ size: 'sm', variant: 'ghost' }), 'w-8')}>
5252
<Info16Icon aria-hidden className="shrink-0" />
5353
</div>

app/components/InstanceAutoRestartPopover.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const InstanceAutoRestartPopover = ({ instance }: { instance: Instance })
4343
return (
4444
<Popover>
4545
<PopoverButton
46-
className="border-default hover:bg-hover group flex h-6 w-6 items-center justify-center rounded border"
46+
className="border-default hover:bg-hover group flex h-6 w-6 items-center justify-center rounded-md border"
4747
aria-label="Auto-restart status"
4848
>
4949
<AutoRestart12Icon className="shrink-0" aria-hidden />
@@ -60,7 +60,7 @@ export const InstanceAutoRestartPopover = ({ instance }: { instance: Instance })
6060
<CloseButton
6161
as={Link}
6262
to={pb.instanceSettings(instanceSelector)}
63-
className="group -m-1 flex w-full items-center justify-between rounded px-1"
63+
className="group -m-1 flex w-full items-center justify-between rounded-md px-1"
6464
>
6565
{match(policy)
6666
.with('never', () => (

app/components/MoreActionsMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const MoreActionsMenu = ({
4040
variant === 'small' && 'h-6 w-6',
4141
variant === 'default' && 'h-8 w-8',
4242
(variant === 'default' || variant === 'small') &&
43-
'border-default rounded border',
43+
'border-default rounded-md border',
4444
variant === 'filled' && 'h-full w-full px-3'
4545
)}
4646
>

app/components/PageSkeleton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { classed } from '~/util/classed'
1313

1414
import { MswBanner } from './MswBanner'
1515

16-
const Block = classed.div`motion-safe:animate-pulse2 rounded bg-tertiary`
16+
const Block = classed.div`motion-safe:animate-pulse2 rounded-md bg-tertiary`
1717

1818
export function PageSkeleton({ skipPaths }: { skipPaths?: RegExp[] }) {
1919
const { pathname } = useLocation()

app/components/Sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { Truncate } from '~/ui/lib/Truncate'
1717

1818
const linkStyles = (isActive = false) =>
1919
cn(
20-
'flex h-7 items-center rounded px-2 text-sans-md [&>svg]:mr-2',
20+
'flex h-7 items-center rounded-md px-2 text-sans-md [&>svg]:mr-2',
2121
isActive
2222
? 'text-accent bg-accent-secondary hover:bg-accent-secondary-hover [&>svg]:text-accent-tertiary'
2323
: 'hover:bg-hover [&>svg]:text-quaternary text-default'

app/components/Terminal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { classed } from '~/util/classed'
1515

1616
import { AttachAddon } from './AttachAddon'
1717

18-
const ScrollButton = classed.button`ml-4 flex h-8 w-8 items-center justify-center rounded border border-secondary hover:bg-hover`
18+
const ScrollButton = classed.button`ml-4 flex h-8 w-8 items-center justify-center rounded-md border border-secondary hover:bg-hover`
1919

2020
function getOptions(): ITerminalOptions {
2121
const style = getComputedStyle(document.body)

app/components/TimeSeriesChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function renderTooltip(props: TooltipProps<number, string>, unit?: string) {
9292
} = payload[0]
9393
if (!timestamp || typeof value !== 'number') return null
9494
return (
95-
<div className="text-sans-md text-secondary bg-raise border-secondary elevation-2 rounded border outline-0">
95+
<div className="text-sans-md text-secondary bg-raise border-secondary elevation-2 rounded-md border outline-0">
9696
<div className="border-secondary border-b px-3 py-2 pr-6">
9797
{longDateTime(timestamp)}
9898
</div>

app/components/TopBar.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ function UserMenu() {
132132
const { me } = useCurrentUser()
133133
return (
134134
<DropdownMenu.Root>
135-
<DropdownMenu.Trigger aria-label="User menu" className="rounded">
135+
<DropdownMenu.Trigger aria-label="User menu" className="rounded-md">
136136
<div
137137
className={cn(
138138
buttonStyle({ size: 'sm', variant: 'ghost' }),
@@ -163,9 +163,9 @@ function SiloSystemPicker({ level }: { level: 'silo' | 'system' }) {
163163
<DropdownMenu.Root>
164164
<DropdownMenu.Trigger
165165
aria-label="Switch between system and silo"
166-
className="headless-hide-focus rounded"
166+
className="headless-hide-focus rounded-md"
167167
>
168-
<div className="active-clicked text-sans-md text-default border-secondary hover:bg-hover flex items-center rounded border px-2 py-1.5">
168+
<div className="active-clicked text-sans-md text-default border-secondary hover:bg-hover flex items-center rounded-md border px-2 py-1.5">
169169
<div className="text-tertiary flex items-center">
170170
{level === 'system' ? <Servers16Icon /> : <Organization16Icon />}
171171
</div>

app/pages/DeviceAuthVerifyPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default function DeviceAuthVerifyPage() {
5151
<AuthCodeInput
5252
onChange={(code) => setUserCode(code)}
5353
containerClassName="flex space-x-2 mb-6"
54-
inputClassName="rounded border border-default bg-default w-full aspect-square flex items-center justify-center text-center text-default text-mono-md"
54+
inputClassName="rounded-md border border-default bg-default w-full aspect-square flex items-center justify-center text-center text-default text-mono-md"
5555
length={8}
5656
dashAfterIdxs={DASH_AFTER_IDXS}
5757
/>

0 commit comments

Comments
 (0)