Skip to content

Commit

Permalink
fix: fix Quiet Dropdown width in large scale, fixes #477
Browse files Browse the repository at this point in the history
  • Loading branch information
lazd committed Jan 21, 2020
1 parent 130d12a commit a36f3bf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/dropdown/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ governing permissions and limitations under the License.
:root {
--spectrum-dropdown-popover-max-width: var(--spectrum-global-dimension-size-3000);
--spectrum-dropdown-width: var(--spectrum-global-dimension-size-2400);

/* This needs to be a variable so it overrides when using multiStops */
--spectrum-dropdown-quiet-width: auto;
}

.spectrum-Dropdown {
Expand Down Expand Up @@ -123,7 +126,7 @@ governing permissions and limitations under the License.
}

.spectrum-Dropdown--quiet {
width: auto;
width: var(--spectrum-dropdown-quiet-width);
min-width: var(--spectrum-dropdown-quiet-min-width);
}

Expand Down

0 comments on commit a36f3bf

Please sign in to comment.