Skip to content

Commit e085a4d

Browse files
committed
chore: updated to css logical properties
1 parent 1035574 commit e085a4d

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

elements/pf-search-input/pf-search-input.css

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
display: flex;
7777
flex-direction: column;
7878
align-items: stretch;
79-
width: 100%;
79+
inline-size: 100%;
8080
}
8181

8282
:host([hidden]),
@@ -109,15 +109,15 @@
109109
#outer.expanded #listbox-container {
110110
opacity: 1;
111111
z-index: 9999 !important;
112-
max-height: var(--pf-c-search-input__menu-content--MaxHeight, 20rem);
113-
overflow: hidden;
112+
max-block-size: var(--pf-c-search-input__menu-content--MaxHeight, 20rem);
113+
overflow-y: scroll;
114114
}
115115

116116
#listbox {
117117
display: flex;
118118
flex-direction: column;
119119
position: relative;
120-
width: 100%;
120+
inline-size: 100%;
121121
}
122122

123123
#listbox slot.disabled {
@@ -162,14 +162,14 @@
162162
border: none;
163163
text-align: left;
164164
border-radius: 0;
165-
padding-left: 3rem;
165+
padding-inline-start: 3rem;
166166
}
167167

168168
#toggle-input {
169169
justify-content: space-between;
170-
width: 100%;
170+
inline-size: 100%;
171171
box-sizing: border-box;
172-
height: 2.25rem;
172+
block-size: 2.25rem;
173173
}
174174

175175
.disabled #toggle-input {
@@ -185,8 +185,8 @@
185185

186186
color: currentColor;
187187
background-color: transparent;
188-
max-height: 2.25rem;
189-
max-width: 2.25rem;
188+
max-block-size: 2.25rem;
189+
max-inline-size: 2.25rem;
190190
box-sizing: border-box;
191191
display: flex;
192192
align-items: center;
@@ -196,13 +196,13 @@
196196

197197
pf-icon {
198198
position: relative;
199-
top: 5px;
199+
inset-block-start: 5px;
200200
}
201201
}
202202

203203
.close-button-container {
204-
height: 2.25rem;
205-
width: 2.25rem;
204+
block-size: 2.25rem;
205+
inline-size: 2.25rem;
206206
}
207207

208208
#toggle-text {
@@ -256,23 +256,23 @@
256256
display: var(--pf-c-divider--Display, flex);
257257
flex-direction: var(--pf-c-divider--FlexDirection);
258258
border: 0;
259-
width: 100%;
259+
inline-size: 100%;
260260
margin-top: var(--pf-c-search-input-menu--c-divider--MarginTop);
261261
margin-bottom: var(--pf-c-search-input-menu--c-divider--MarginBottom);
262262
}
263263

264264
::slotted(hr)::after {
265265
content: '';
266-
width: var(--pf-c-divider--after--Width, 100%) !important;
267-
height: var(--pf-c-divider--after--Height, 1px);
266+
inline-size: var(--pf-c-divider--after--Width, 100%) !important;
267+
block-size: var(--pf-c-divider--after--Height, 1px);
268268
background-color: var(--pf-c-divider--after--BackgroundColor);
269269
flex: 1 0 100%;
270270
}
271271

272272
div.search-icon {
273273
position: absolute;
274-
top: 50%;
275-
left: var(--pf-global--spacer--md, 1rem);
274+
inset-block-start: 50%;
275+
inset-inline-start: var(--pf-global--spacer--md, 1rem);
276276
transform: translateY(-50%);
277277
display: flex;
278278
align-items: center;
@@ -293,10 +293,10 @@ div.search-icon {
293293

294294
&::after {
295295
content: '';
296-
width: 36px;
297-
height: var(--pf-global--spacer--xs, 0.125rem);
298-
bottom: 0px;
299-
left: 0px;
296+
inline-size: 36px;
297+
block-size: var(--pf-global--spacer--xs, 0.125rem);
298+
inset-block-end: 0px;
299+
inset-inline-start: 0px;
300300
background-color: var(--pf-theme--color--accent, #0066cc);
301301
position: absolute;
302302
}

0 commit comments

Comments
 (0)