Skip to content

Commit 9aaeef2

Browse files
committed
fix(input-otp): improve separator collapse
1 parent b260644 commit 9aaeef2

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

core/src/components/input-otp/input-otp.scss

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@
113113
.input-otp-separator {
114114
@include border-radius(var(--separator-border-radius));
115115

116+
flex: 1 0 auto;
117+
116118
width: var(--separator-width);
117119
height: var(--separator-height);
118120

@@ -129,14 +131,11 @@
129131
font-size: 0.875em;
130132
}
131133

132-
:host(.input-otp-size-small) .input-otp-group {
134+
:host(.input-otp-size-small) .input-otp-group,
135+
:host(.input-otp-size-small) .native-wrapper {
133136
gap: 8px;
134137
}
135138

136-
:host(.input-otp-size-small) .input-otp-separator {
137-
@include margin-horizontal(8px, null);
138-
}
139-
140139
:host(.input-otp-size-medium) {
141140
--width: 48px;
142141
--height: 48px;
@@ -152,16 +151,12 @@
152151
}
153152

154153
:host(.input-otp-size-medium) .input-otp-group,
155-
:host(.input-otp-size-large) .input-otp-group {
154+
:host(.input-otp-size-medium) .native-wrapper,
155+
:host(.input-otp-size-large) .input-otp-group,
156+
:host(.input-otp-size-large) .native-wrapper {
156157
gap: 12px;
157158
}
158159

159-
:host(.input-otp-size-medium) .input-otp-separator,
160-
:host(.input-otp-size-large) .input-otp-separator {
161-
@include margin-horizontal(12px, null);
162-
}
163-
164-
165160
// Shapes
166161
// --------------------------------------------------
167162

0 commit comments

Comments
 (0)