Skip to content

Commit

Permalink
Merge pull request #68 from PrestaShopCorp/fix/puik-select-disabled-r…
Browse files Browse the repository at this point in the history
…egression

Fixed style regression on PuikSelect disabled state
  • Loading branch information
aAmorim27 authored Jan 17, 2023
2 parents 0f765e4 + 24a47bc commit 8c8c9de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/components/select/src/select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
class="puik-select__selected"
:autocomplete="autocomplete"
:placeholder="placeholder"
:disabled="disabled"
tabindex="-1"
:readonly="open"
type="text"
Expand Down
4 changes: 2 additions & 2 deletions packages/theme/src/select.scss
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
.puik-select {
@apply relative mt-1;
&__button {
@apply relative w-full cursor-default rounded bg-white min-h-[38px] text-left border border-light-blue-default-border hover:border-primary-purple-500 focus:outline-none focus:ring focus:ring-focus-main sm:text-sm disabled:border-light-blue-default-border disabled:bg-light-blue-background disabled:text-font-disabled;
@apply relative w-full cursor-default rounded bg-white min-h-[38px] text-left border border-light-blue-default-border hover:border-primary-purple-500 focus:outline-none focus:ring focus:ring-focus-main sm:text-sm disabled:border-light-blue-default-border disabled:text-font-disabled;
&--error {
@apply border-accentuation-destructive-500;
}
}
&__selected {
@apply block truncate w-full py-2 pl-3 pr-9 select-none font-secondary outline-none pointer-events-none text-font-900 placeholder:text-font-900;
@apply block truncate w-full py-2 pl-3 pr-9 select-none font-secondary outline-none pointer-events-none text-font-900 placeholder:text-font-900 disabled:bg-light-blue-background disabled:placeholder:text-font-disabled;
&:-webkit-autofill {
-webkit-box-shadow: 0 0 0 50px #e9e6f8 inset;
}
Expand Down

0 comments on commit 8c8c9de

Please sign in to comment.