Skip to content

Commit 7ed8d22

Browse files
fix: select placeholder jumping with label above (#5159)
* fix: select placeholder jumping with label above * auto update snapshots (#5161) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix: issue with cut placeholder --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 424ec4a commit 7ed8d22

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.changeset/heavy-days-call.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@db-ux/core-components": patch
3+
---
4+
5+
fix(select): jumping placeholder for label above

packages/components/src/styles/internal/_select-components.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ $select-icon-padding: calc(
2323
position: absolute;
2424
inset-block-start: 0;
2525
inset-inline-start: 0;
26+
opacity: 0;
27+
28+
@media screen and (prefers-reduced-motion: no-preference) {
29+
transition:
30+
opacity #{variables.$db-transition-straight-emotional},
31+
outline #{variables.$db-transition-duration-extra-fast},
32+
border-color #{variables.$db-transition-straight-emotional},
33+
background-color #{variables.$db-transition-straight-emotional};
34+
}
2635
}
2736

2837
%select-placeholder {

0 commit comments

Comments
 (0)