Repository navigation
style(menu): conform to code style guides #6799
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
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 |
|---|---|---|
|
|
@@ -73,7 +73,7 @@ const meta: Meta = { | |
| export default meta; | ||
|
|
||
| // ──────────────────── | ||
| // PLAYGROUND STORY | ||
| // HELPERS | ||
| // ──────────────────── | ||
|
|
||
| // Placeholders for `swc-menu-item`, which doesn't exist yet; matches its | ||
|
|
@@ -84,6 +84,10 @@ const defaultItems = html` | |
| <swc-menu-item role="menuitem" tabindex="-1">Paste</swc-menu-item> | ||
| `; | ||
|
|
||
| // ──────────────────── | ||
| // PLAYGROUND STORY | ||
| // ──────────────────── | ||
|
|
||
| export const Playground: Story = { | ||
| args: { | ||
| open: false, | ||
|
|
@@ -272,6 +276,7 @@ export const TriggerElement: Story = { | |
| `; | ||
| }, | ||
| }; | ||
| TriggerElement.storyName = 'Trigger element'; | ||
|
Contributor
Author
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. Self-review
The |
||
|
|
||
| // ──────────────────────────────── | ||
| // ACCESSIBILITY STORIES | ||
|
|
||
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.
Self-review — checked against
Popover.tsprecedent: this reads correct.Dropping
PlacementControllerhere is right: it's an internal collaborator, and this JSDoc is CEM-facing (it feeds<ApiTable />and the docs page).Popover.tslikewise never names it.I did stop to question whether naming
MenuBasejust swaps one internal for another, butPopover.ts:25-27says almost exactly the same thing:So the base class is an established, documented architectural concept in this JSDoc slot, unlike a collaborator. Deliberately mirrored.
One gap this PR arguably should have caught:
Menu.tshas no@sincetag, whilePopover.ts,Tooltip.ts, andBadge.tsall carry one (Popover.tshas@since 2.0.0-beta.2right under@element). It isn't mandated by07_jsdoc-standards.md, so I left it rather than invent a version — but if the 3-of-3 peer convention is intentional, this block is the place to add it and I'm happy to. Flagging rather than guessing the value.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.
I would think the since tag should be added since all other components have it. it should be +1 version to whatever the next release will be