diff --git a/CHANGES.md b/CHANGES.md index 8a25ed336e..4219ce90f5 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -27,6 +27,7 @@ - Fix CSS generated box-shadow property [Taiga #12997](https://tree.taiga.io/project/penpot/issue/12997) - Fix inner shadow selector on shadow token [Taiga #12951](https://tree.taiga.io/project/penpot/issue/12951) - Fix missing text color token from selected shapes in selected colors list [Taiga #12956](https://tree.taiga.io/project/penpot/issue/12956) +- Fix dropdown option width in Guides columns dropdown [Taiga #12959](https://tree.taiga.io/project/penpot/issue/12959) ## 2.12.1 diff --git a/frontend/resources/styles/common/refactor/basic-rules.scss b/frontend/resources/styles/common/refactor/basic-rules.scss index 68593d6348..acf775e262 100644 --- a/frontend/resources/styles/common/refactor/basic-rules.scss +++ b/frontend/resources/styles/common/refactor/basic-rules.scss @@ -667,6 +667,9 @@ } // UI ELEMENTS + +// FIXME: This is used multiple times accross the app. We should design this in +// the DS and create a proper component for it. .asset-element { @include bodySmallTypography; display: flex; diff --git a/frontend/src/app/main/ui/components/editable_select.scss b/frontend/src/app/main/ui/components/editable_select.scss index 16962b6d22..ef874df8c0 100644 --- a/frontend/src/app/main/ui/components/editable_select.scss +++ b/frontend/src/app/main/ui/components/editable_select.scss @@ -4,22 +4,29 @@ // // Copyright (c) KALEIDOS INC -@use "refactor/common-refactor.scss" as deprecated; +// FIXME: we need this import for .asset-element +@use "refactor/basic-rules.scss" as deprecated; + +@use "ds/_borders.scss" as *; +@use "ds/_sizes.scss" as *; +@use "ds/_utils.scss" as *; +@use "ds/spacing.scss" as *; .editable-select { @extend .asset-element; margin: 0; padding: 0; - border: deprecated.$s-1 solid var(--input-border-color); + border: $b-1 solid var(--input-border-color); position: relative; display: flex; - height: deprecated.$s-32; + height: $sz-32; width: 100%; - padding: deprecated.$s-8; - border-radius: deprecated.$br-8; + padding: var(--sp-s); + border-radius: $br-8; cursor: pointer; .dropdown-button { - @include deprecated.flexCenter; + display: flex; + place-content: center; svg { @extend .button-icon-small; transform: rotate(90deg); @@ -29,10 +36,11 @@ .custom-select-dropdown { @extend .dropdown-wrapper; - max-height: deprecated.$s-320; + width: fit-content; + max-height: px2rem(320); // TODO: when this gets addressed in the DS, use a token .separator { margin: 0; - height: deprecated.$s-12; + height: $sz-12; } .dropdown-element { @extend .dropdown-element-base; @@ -43,7 +51,8 @@ } .check-icon { - @include deprecated.flexCenter; + display: flex; + place-content: center; svg { @extend .button-icon-small; visibility: hidden;