Skip to content
Open
Changes from all commits
Commits
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
6 changes: 6 additions & 0 deletions packages/react/src/html/ui/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ main {
div[role='menu'] {
left: 0;

/* Shrink the dropdown to fit its content instead of the fixed
* width set by @node-core/ui-components (nodejs/doc-kit#1051) */
width: fit-content;
min-width: 12rem;
max-width: 20rem;
Comment on lines +125 to +129

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Perhaps we update this in ui-components?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm unsure whether to make uniform changes within the component or to implement targeted changes within projects that use the component.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

IMO should be on ui-components itself too!


/* Prevent long labels from overflowing dropdown width */
a[role='menuitem'] div {
overflow-wrap: anywhere;
Expand Down
Loading