From 251785fa260af67387668eaffd6636545efa95b2 Mon Sep 17 00:00:00 2001 From: Zakaria Warsame Date: Mon, 31 Jul 2023 18:47:18 -0400 Subject: [PATCH] changeset --- .changeset/ninety-carrots-hammer.md | 5 +++++ polaris-react/src/components/ActionList/ActionList.scss | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .changeset/ninety-carrots-hammer.md diff --git a/.changeset/ninety-carrots-hammer.md b/.changeset/ninety-carrots-hammer.md new file mode 100644 index 00000000000..97be0e2b82e --- /dev/null +++ b/.changeset/ninety-carrots-hammer.md @@ -0,0 +1,5 @@ +--- +'@shopify/polaris': patch +--- + +Fixed ActionList item overflow and tooltip zIndex diff --git a/polaris-react/src/components/ActionList/ActionList.scss b/polaris-react/src/components/ActionList/ActionList.scss index 592093a2105..8a3d6a13775 100644 --- a/polaris-react/src/components/ActionList/ActionList.scss +++ b/polaris-react/src/components/ActionList/ActionList.scss @@ -1,5 +1,8 @@ @import '../../styles/common'; +$indented-item-margin: calc(var(--p-space-5) + var(--p-space-05)); +$indented-item-width: calc(100% - #{$indented-item-margin}); + .Item { // stylelint-disable -- Polaris component custom properties --pc-action-list-item-min-height: var(--p-space-10); @@ -175,7 +178,7 @@ // stylelint-enable position: relative; margin-left: calc(var(--p-space-5) + var(--p-space-05)); - max-width: 94%; + max-width: $indented-item-width; &::before { content: '';