Skip to content

feat: refine menu-item focus states and sidebar story layouts#606

Open
gab-az wants to merge 13 commits into
mainfrom
feat-menu-item-and-sidebar
Open

feat: refine menu-item focus states and sidebar story layouts#606
gab-az wants to merge 13 commits into
mainfrom
feat-menu-item-and-sidebar

Conversation

@gab-az
Copy link
Copy Markdown
Collaborator

@gab-az gab-az commented May 27, 2026

Summary

  • refine MenuItem interaction behavior: focus ring lives on the real interactive element (a/button), icon colors now respond to selected/hover/focus/disabled states, and non-behavioral attrs are forwarded safely
  • simplify MenuItem stories to a leaner set and fix controls behavior for the default render template
  • remove default spacing ownership from Sidebar regions and update sidebar/story templates to define spacing in slot content, including a new header+profile footer layout based on the provided Figma node

Test plan

  • Pre-commit hooks passed on both commits (eslint --fix + prettier --write)
  • Run pnpm storybook:dev and verify:
    • Webkit/Navigation/MenuItem focus/hover/selected icon behavior
    • Webkit/Layout/Sidebar stories: content-only, with header search, and with header+profile footer
  • Run pnpm storybook:build

Made with Cursor

gablisboa and others added 2 commits May 27, 2026 17:59
Align menu-item focus and icon state behavior with selected/default semantics and simplify story coverage to the essential states.

Co-authored-by: Cursor <cursoragent@cursor.com>
Move sidebar spacing ownership to slot content and refresh Storybook variants to cover content-only, header search, and profile footer layouts from the latest design.

Co-authored-by: Cursor <cursoragent@cursor.com>
@gab-az gab-az requested a review from a team as a code owner May 27, 2026 21:00
isaquebock
isaquebock previously approved these changes May 27, 2026
gablisboa and others added 2 commits May 27, 2026 18:04
Render sidebar examples from a console-like menu data model so story variants stay aligned with production navigation structure.

Co-authored-by: Cursor <cursoragent@cursor.com>
pauloSF0
pauloSF0 previously approved these changes May 28, 2026
table: {
type: { summary: 'MenuItemKind' },
defaultValue: { summary: 'option' },
defaultValue: { summary: "'option'" },
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update from defaultValue: { summary: "'option'" }to efaultValue: { summary: 'option' }

table: {
type: { summary: 'string' },
defaultValue: { summary: 'Option 1' },
defaultValue: { summary: "'Option 1'" },
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update from defaultValue: { summary: "'Option 1'" } to defaultValue: { summary: 'Option 1' }

table: {
type: { summary: 'boolean' },
defaultValue: { summary: false },
defaultValue: { summary: 'false' },
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'false' it is wrong, should be false || true

table: {
type: { summary: 'boolean' },
defaultValue: { summary: false },
defaultValue: { summary: 'false' },
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'false' it is wrong, should be false || true

table: {
type: { summary: 'string' },
defaultValue: { summary: '' },
defaultValue: { summary: "''" },
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong.

table: {
type: { summary: 'string' },
defaultValue: { summary: 'pi pi-home' },
defaultValue: { summary: "'pi pi-home'" },
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong

table: {
type: { summary: "'_self' | '_blank'" },
defaultValue: { summary: '_self' },
defaultValue: { summary: "'_self'" },
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong

table: {
type: { summary: 'MenuItemTagSeverity' },
defaultValue: { summary: 'info' },
defaultValue: { summary: "'info'" },
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong

Restore plain string/boolean summaries in docs tables per review feedback.

Co-authored-by: Cursor <cursoragent@cursor.com>
gablisboa and others added 7 commits May 28, 2026 12:48
Support top, bottom, left, right, and auto sides with collision-aware
positioning so panels open where space allows.

Co-authored-by: Cursor <cursoragent@cursor.com>
Expose auto, top, bottom, left, and right in argTypes for the overlay menu.

Co-authored-by: Cursor <cursoragent@cursor.com>
Wire the sidebar profile trigger to DropdownMenu with side top, Avatar
WithImage pattern, and the Figma account menu items.

Co-authored-by: Cursor <cursoragent@cursor.com>
Move vertical scrolling into Sidebar via ScrollArea, drop SidebarGroup
scroll prop, and apply header/nav/footer spacing on the shell regions
instead of consumer content wrappers.

Co-authored-by: Cursor <cursoragent@cursor.com>
Refresh Purpose, Usage composition snippet, ariaLabel prop, and
Storybook story list to match the region-based layout API.

Co-authored-by: Cursor <cursoragent@cursor.com>
Inject spec Usage into Sidebar docs, drop content padding wrappers,
remove SidebarGroup scroll usage, and note ScrollArea is built into Sidebar.

Co-authored-by: Cursor <cursoragent@cursor.com>
Remove pb-0 override so the header region keeps consistent spacing
on all sides.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants