Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
5d8bfc6
feat(mosaic): add action bar component
prestonwebdev Sep 22, 2026
7e3ce56
feat(mosaic): anchor the action bar to its table and make it a roving…
maxyinger Sep 23, 2026
031f433
test(mosaic): cover focus return through a confirmation dialog in the…
maxyinger Sep 23, 2026
a34f5db
fix(mosaic): use tabular figures for the action bar count
maxyinger Sep 23, 2026
fe5d319
fix(mosaic): keep action bar focus through menus and dialogs opened f…
maxyinger Sep 23, 2026
eb31305
fix(mosaic): ease the action bar fade and trim its doc comments
maxyinger Sep 23, 2026
730a678
docs(swingset): show the action bar in a profile dialog and inline
maxyinger Sep 23, 2026
5cabfff
refactor(mosaic): portal the action bar and track its table with floa…
maxyinger Sep 23, 2026
092a97c
fix(mosaic): let menus and dialogs stack above the action bar
maxyinger Sep 23, 2026
20938b2
fix(mosaic): hold the action bar count through its exit and hang it l…
maxyinger Sep 23, 2026
fd02444
refactor(mosaic): use shared DOM utils in the action bar
maxyinger Sep 23, 2026
85d232d
chore(mosaic): trim action bar comments
maxyinger Sep 23, 2026
ec75b57
feat(mosaic): announce the action bar from a status region outside it
maxyinger Sep 23, 2026
51c0884
Merge branch 'main' into max/action-bar
alexcarpenter Sep 24, 2026
ff184ad
refactor(mosaic): mount the action bar on open and drop Home/End
maxyinger Sep 24, 2026
20642b7
refactor(mosaic): rename action bar returnFocus to finalFocus and acc…
maxyinger Sep 24, 2026
39a7a62
test(mosaic): drop the action bar exit-hold test
maxyinger Sep 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .changeset/mosaic-action-bar.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
82 changes: 82 additions & 0 deletions packages/mosaic/src/components/action-bar/action-bar.styles.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
import * as stylex from '@stylexjs/stylex';

import {
colorVars,
durationVars,
easingVars,
fontWeightVars,
radiusVars,
shadowVars,
space,
typeScaleVars,
} from '../../tokens.stylex';

const reduceMotion = '@media (prefers-reduced-motion: reduce)';

export const styles = stylex.create({
positioner: {
pointerEvents: 'none',
width: 'max-content',
},
items: {
display: 'contents',
},
destructive: {
'--_cl-icon-color': colorVars['--cl-color-negative'],
},
bar: {
borderRadius: radiusVars['--cl-radius-lg'],
gap: space['1'],
paddingBlock: space['1'],
paddingInline: space['1'],
alignItems: 'center',
backgroundColor: colorVars['--cl-color-background'],
blockSize: space['10'],
boxShadow: shadowVars['--cl-shadow-lg'],
display: 'flex',
flexShrink: 0,
opacity: {
default: 1,
':where([data-starting-style], [data-ending-style])': 0,
},
pointerEvents: {
default: 'auto',
':where([data-ending-style])': 'none',
},
transform: {
default: 'translateY(0)',
[reduceMotion]: {
default: 'translateY(0)',
':where([data-starting-style], [data-ending-style])': 'translateY(0)',
},
':where([data-starting-style], [data-ending-style])': 'translateY(0.25rem)',
},
transitionDuration: {
default: `${durationVars['--cl-duration-fast']}, ${durationVars['--cl-duration-base']}`,
':where([data-ending-style])': durationVars['--cl-duration-fast'],
},
transitionProperty: {
default: 'opacity, transform',
[reduceMotion]: 'opacity',
},
transitionTimingFunction: {
default: easingVars['--cl-ease-enter'],
':where([data-ending-style])': easingVars['--cl-ease-exit'],
},
},
count: {
paddingInline: space['2'],
color: colorVars['--cl-color-foreground'],
fontSize: typeScaleVars['--cl-text-sm-size'],
fontWeight: fontWeightVars['--cl-font-medium'],
lineHeight: typeScaleVars['--cl-text-sm-leading'],
whiteSpace: 'nowrap',
},
separator: {
marginBlock: space['1'],
marginInline: space['0.5'],
alignSelf: 'stretch',
backgroundColor: colorVars['--cl-color-border'],
width: '1px',
},
});
Loading
Loading