Skip to content

Commit

Permalink
tooltip max width
Browse files Browse the repository at this point in the history
  • Loading branch information
jake-figma committed Jun 15, 2024
1 parent 554531c commit 39998cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
--global-stack-focus: 999;
--global-container-max-width: 75rem;
--global-dialog-max-width: 32rem;
--global-tooltip-max-width: calc(var(--global-dialog-max-width) / 2);
}

.display-none-to-flex {
Expand Down
2 changes: 1 addition & 1 deletion src/ui/Tooltip/tooltip.css
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
gap: var(--sds-size-space-100);
padding-left: var(--sds-size-space-300);
padding-right: var(--sds-size-space-300);
max-width: calc(var(--global-dialog-max-width) / 2);
max-width: var(--global-tooltip-max-width);
width: 100%;
}
}

0 comments on commit 39998cc

Please sign in to comment.