Skip to content

Commit a2992b2

Browse files
maxyingerclaude
andcommitted
fix(mosaic): tighten the password row and keep header actions outlined
The password card shows its value as a single list item instead of a full-height row, a row's content centers within its minimum height, and the sign-out-all action uses the outline variant like other header actions. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
1 parent 08c4e0b commit a2992b2

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎packages/mosaic/src/components/section/section.styles.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export const styles = stylex.create({
7474
},
7575
display: 'flex',
7676
flexDirection: 'column',
77+
justifyContent: 'center',
7778
rowGap: space['2'],
7879
minHeight: `calc(${space['18.5']} + 1px)`,
7980
width: '100%',

‎packages/mosaic/src/features/user-profile/__tests__/user-profile-security-panel.view.test.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ describe('UserProfileSecurityPanelView', () => {
120120

121121
await user.click(screen.getByRole('button', { name: 'Add passkey' }));
122122
const signOutAll = screen.getByRole('button', { name: 'Sign out of all devices' });
123-
expect(signOutAll).toHaveAttribute('data-variant', 'ghost');
123+
expect(signOutAll).toHaveAttribute('data-variant', 'outline');
124124
expect(screen.getByRole('group', { name: 'Active devices' }).querySelector('.cl-section-header')).toContainElement(
125125
signOutAll,
126126
);

‎packages/mosaic/src/features/user-profile/user-profile-active-devices-section.view.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export function UserProfileActiveDevicesSectionView({
9494
ref={signOutAllTrigger}
9595
color='neutral'
9696
size='sm'
97-
variant='ghost'
97+
variant='outline'
9898
onClick={() => setIsSignOutAllOpen(true)}
9999
>
100100
{m.signOutAll}

‎packages/mosaic/src/features/user-profile/user-profile-password-section/user-profile-password-row.view.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function UserProfilePasswordRowView({
2222
}: UserProfilePasswordSectionViewProps) {
2323
const m = useMessages('userProfilePasswordSection');
2424
return (
25-
<Section.Row>
25+
<Section.Items>
2626
<Section.Item>
2727
<Section.Content>
2828
<Section.Description>{hasPassword ? m.masked : m.noPasswordSet}</Section.Description>
@@ -41,7 +41,7 @@ export function UserProfilePasswordRowView({
4141
</Section.Actions>
4242
) : null}
4343
</Section.Item>
44-
</Section.Row>
44+
</Section.Items>
4545
);
4646
}
4747

0 commit comments

Comments
 (0)