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
10 changes: 7 additions & 3 deletions packages/@adobe/react-spectrum/src/actionbar/actionbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@
display: grid;
grid-template-areas: 'clear selected . actiongroup';
grid-template-columns:
auto max-content minmax(var(--spectrum-global-dimension-size-300), 1fr)
auto;
auto minmax(0, max-content) minmax(0, 1fr)
minmax(0, max-content);
align-items: center;
min-width: 0;
isolation: isolate;
justify-content: space-between;

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.

Please explain the changes, because I would not have expected this property to change

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

justify-content: space-between: I removed it because it wasn't doing anything.

In this grid, the third column is 1fr, which automatically takes up all the remaining space. Since there's no extra space left, justify-content: space-between has nothing to distribute. So removing it doesn't change the layout or behavior, it was simply unused code.

overflow: hidden;
padding: var(--spectrum-global-dimension-size-100);

position: absolute;
Expand Down Expand Up @@ -79,6 +80,9 @@
padding: 0 var(--spectrum-global-dimension-size-50);
user-select: none;
cursor: default;
min-width: 0;
overflow: hidden;
white-space: nowrap;
}

.react-spectrum-ActionBar-actionGroup {
Expand Down