-
Notifications
You must be signed in to change notification settings - Fork 268
fix(ui): govern leftover icon sizes with ICON_SIZE #3127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,7 +26,7 @@ import { Layout, LayoutContent, LayoutFooter } from '@astryxdesign/core/Layout'; | |
| import { HStack } from '@astryxdesign/core/Stack'; | ||
| import { Text } from '@astryxdesign/core/Text'; | ||
| import { useUiLocale } from '@maka/ui'; | ||
| import { Check, Eye, EyeOff, FolderOpen } from '@maka/ui/icons'; | ||
| import { ICON_SIZE, Check, Eye, EyeOff, FolderOpen } from '@maka/ui/icons'; | ||
| import type { | ||
| DesktopProjectDirectoryEntry, | ||
| DesktopProjectDirectoryRoot, | ||
|
|
@@ -243,9 +243,9 @@ export function RemoteProjectDirectoryDialog(props: { | |
| <DropdownMenuItem | ||
| key={candidate.id} | ||
| label={candidate.label} | ||
| icon={<FolderOpen size={18} aria-hidden="true" />} | ||
| icon={<FolderOpen size={ICON_SIZE.control} aria-hidden="true" />} | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [P3] Same leftover 18px, two rungs.
|
||
| endContent={candidate.id === root?.id | ||
| ? <Check size={18} aria-hidden="true" /> | ||
| ? <Check size={ICON_SIZE.control} aria-hidden="true" /> | ||
| : undefined} | ||
| onClick={() => selectRoot(candidate)} | ||
| /> | ||
|
|
@@ -292,7 +292,7 @@ export function RemoteProjectDirectoryDialog(props: { | |
| key={entry.name} | ||
| variant="ghost" | ||
| label={entry.name} | ||
| icon={<FolderOpen size={18} aria-hidden="true" />} | ||
| icon={<FolderOpen size={ICON_SIZE.control} aria-hidden="true" />} | ||
| isDisabled={registering} | ||
| onClick={() => navigate([...segments, entry.name])} | ||
| /> | ||
|
|
@@ -313,8 +313,8 @@ export function RemoteProjectDirectoryDialog(props: { | |
| ? copy.remoteDirectoryHideHidden | ||
| : copy.remoteDirectoryShowHidden} | ||
| icon={showHidden | ||
| ? <Eye size={18} aria-hidden="true" /> | ||
| : <EyeOff size={18} aria-hidden="true" />} | ||
| ? <Eye size={ICON_SIZE.chrome} aria-hidden="true" /> | ||
| : <EyeOff size={ICON_SIZE.chrome} aria-hidden="true" />} | ||
| aria-pressed={showHidden} | ||
| isDisabled={registering} | ||
| onClick={() => setShowHidden((current) => !current)} | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,7 +20,7 @@ | |
| import { useEffect, useId, useState, type ReactNode } from 'react'; | ||
| import { Badge, Link, List, ListItem } from '@astryxdesign/core'; | ||
| import { Kbd } from '@astryxdesign/core/Kbd'; | ||
| import { Sparkles } from '@maka/ui/icons'; | ||
| import { ICON_SIZE, Sparkles } from '@maka/ui/icons'; | ||
| import { | ||
| Banner, | ||
| Button, | ||
|
|
@@ -167,7 +167,7 @@ export function AboutSettingsPage(props: { onOpenKeyboardHelp?(): void }) { | |
| as_wrapper="div" | ||
| className="settingsAboutHero" | ||
| as="h2" | ||
| icon={<Sparkles size={30} /> /* 64% of the 48px plate, matching .providerLogo's fill */} | ||
| icon={<Sparkles size={ICON_SIZE.plate} /> /* plate glyph inside the About hero mark */} | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [P3] |
||
| iconClassName="settingsAboutLogo" | ||
| headingRowClassName="settingsAboutHeading" | ||
| title="Maka" | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[P2] Same leftover pixel, different rung.
This
Copysits onButton size="sm", same as the copy-path button above (:201), which already usesICON_SIZE.control(14). The rawsize={14}here was that same 14.ICON_SIZE.chromeis 16 — the Astryx sm slot fill. Mapping only this leftover to chrome changes the glyph and splits two identical copy-on-sm-button call sites.If the intent is “sm button → chrome”, both should move. If the intent is “preserve the leftover 14 / match the sibling”, this should be
ICON_SIZE.control. The checker only bans raw pixels, so it cannot catch a wrong rung.