diff --git a/client/src/Providers/__tests__/DeploymentTheme.spec.tsx b/client/src/Providers/__tests__/DeploymentTheme.spec.tsx index d18d9f3efa..ffb74ee833 100644 --- a/client/src/Providers/__tests__/DeploymentTheme.spec.tsx +++ b/client/src/Providers/__tests__/DeploymentTheme.spec.tsx @@ -170,7 +170,7 @@ describe('DeploymentTheme', () => { ...inlineTheme.modes, light: { ...inlineTheme.modes.light, - appearance: { controlRadius: '2px', futureSpacing: '3rem' }, + appearance: { controlRadius: '2px', futureSpacing: '3.3125rem' }, }, }, }); @@ -179,7 +179,7 @@ describe('DeploymentTheme', () => { await waitFor(() => expect(root().dataset.theme).toBe('acme')); expect(root().style.getPropertyValue('--surface-primary')).toBe('10 20 30'); expect(root().style.getPropertyValue('--theme-control-radius')).toBe('2px'); - expect(root().getAttribute('style')).not.toContain('3rem'); + expect(root().getAttribute('style')).not.toContain('3.3125rem'); expect(warn).toHaveBeenCalledWith( '[ThemeProvider] Unknown light appearance token ignored: futureSpacing', ); diff --git a/client/src/components/Bookmarks/BookmarkForm.tsx b/client/src/components/Bookmarks/BookmarkForm.tsx index d94ba4de9b..319e1bc234 100644 --- a/client/src/components/Bookmarks/BookmarkForm.tsx +++ b/client/src/components/Bookmarks/BookmarkForm.tsx @@ -162,7 +162,7 @@ const BookmarkForm = ({ {...field} checked={field.value} onCheckedChange={field.onChange} - className="size-4 cursor-pointer" + className="cursor-pointer" value={field.value?.toString()} aria-label={localize('com_ui_bookmarks_add_to_conversation')} /> diff --git a/client/src/components/Nav/SettingsTabs/Account/Passkeys/PasskeyItem.tsx b/client/src/components/Nav/SettingsTabs/Account/Passkeys/PasskeyItem.tsx index d4c43e56fb..3c36dde9e8 100644 --- a/client/src/components/Nav/SettingsTabs/Account/Passkeys/PasskeyItem.tsx +++ b/client/src/components/Nav/SettingsTabs/Account/Passkeys/PasskeyItem.tsx @@ -186,7 +186,7 @@ function PasskeyItem({ onChange={(event) => setDraftName(event.target.value)} onKeyDown={onRenameKeyDown} aria-label={localize('com_ui_passkey_name')} - className="h-10" + variant="inline" /> { const saveButton = screen.getByRole('button', { name: 'Save' }); const cancelButton = screen.getByRole('button', { name: 'Cancel' }); - expect(input).toHaveClass('h-10'); + /** The field takes the buttons' height role, so a theme whose field and button heights + * differ still draws one row height. */ + expect(input).toHaveClass('h-theme-button'); + expect(input).not.toHaveClass('h-theme-field'); expect(input.parentElement?.parentElement).toHaveClass('py-2'); - expect(saveButton).toHaveClass('size-10'); - expect(cancelButton).toHaveClass('size-10'); + expect(saveButton).toHaveClass('size-theme-button'); + expect(cancelButton).toHaveClass('size-theme-button'); expect(cancelButton).toHaveClass('bg-surface-secondary'); }); diff --git a/client/src/components/SidePanel/Agents/Advanced/AdvancedPanel.tsx b/client/src/components/SidePanel/Agents/Advanced/AdvancedPanel.tsx index e821105410..ec2a08358a 100644 --- a/client/src/components/SidePanel/Agents/Advanced/AdvancedPanel.tsx +++ b/client/src/components/SidePanel/Agents/Advanced/AdvancedPanel.tsx @@ -39,14 +39,17 @@ export default function AdvancedPanel() { size="icon" onClick={() => setActivePanel(Panel.builder)} aria-label={localize('com_ui_back_to_builder')} - className="border-border-light text-text-secondary hover:bg-surface-secondary hover:text-text-primary focus-visible:ring-text-primary h-10 w-10 shrink-0 rounded-xl border focus-visible:ring-2" + className="border-border-light text-text-secondary hover:bg-surface-secondary hover:text-text-primary focus-visible:ring-text-primary shrink-0 rounded-xl border focus-visible:ring-2" >