Skip to content

Commit 21b50c7

Browse files
DenizSaganakArun Kumaar
authored and
Arun Kumaar
committed
fix(ui-library): rename classes and fix padding issue
1 parent 9a4fb90 commit 21b50c7

File tree

4 files changed

+8
-19
lines changed

4 files changed

+8
-19
lines changed

packages/ui-library/src/components/select/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ export class BlrSelect extends LitElement {
9898
variant: this.hasError ? 'error' : 'label',
9999
})
100100
: nothing}
101-
<div class="blr-select-inner-container ${inputClasses}">
102-
<div class="blr-select-wrapper">
101+
<div class="blr-select-wrapper ${inputClasses}">
102+
<div class="blr-select-inner-container">
103103
<select
104104
class="blr-form-select ${inputClasses}"
105105
id=${this.selectId || nothing}

packages/ui-library/src/components/text-input/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ export class BlrTextInput extends LitElement {
106106
})}
107107
`
108108
: html``}
109-
<div class="blr-input-inner-container ${inputContainerClasses}">
110-
<div class="blr-input-wrapper">
109+
<div class="blr-input-wrapper ${inputContainerClasses}">
110+
<div class="blr-input-inner-container">
111111
<input
112112
class="blr-form-input ${inputClasses}"
113113
id=${this.textInputId}

packages/ui-library/src/foundation/component-tokens/select.css.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const { tokenizedLight: selectInputLight, tokenizedDark: selectInputDark
77
const { Select } = componentTokens.Forms;
88

99
return css`
10-
.blr-select-wrapper {
10+
.blr-select-inner-container {
1111
flex-grow: 1;
1212
flex-shrink: 1;
1313
@@ -120,11 +120,10 @@ export const { tokenizedLight: selectInputLight, tokenizedDark: selectInputDark
120120
}
121121
}
122122
123-
.blr-select-inner-container {
123+
.blr-select-wrapper {
124124
display: flex;
125125
justify-content: space-between;
126126
align-items: center;
127-
128127
border: ${Input.Default.Rest.width} ${Input.Default.Rest.style} ${Input.Default.Rest.color};
129128
border-radius: ${InputBorderRadius};
130129
box-sizing: border-box;

packages/ui-library/src/foundation/component-tokens/text-input.css.js

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ import { renderThemedCssStrings } from "../_tokens-generated/index.pseudo.genera
44
export const { tokenizedLight: textInputLight, tokenizedDark: textInputDark } = renderThemedCssStrings(
55
(componentTokens, semanticTokens) => {
66
const { UserInput, SurfaceFill, SM, MD, LG, Input, InputBorderRadius, Placeholder, InputIcon } = semanticTokens.Forms;
7-
const { Select } = componentTokens.Forms;
87

98
return css`
10-
.blr-input-wrapper {
9+
.blr-input-inner-container {
1110
flex-grow: 1;
1211
flex-shrink: 1;
1312
@@ -120,11 +119,10 @@ export const { tokenizedLight: textInputLight, tokenizedDark: textInputDark } =
120119
}
121120
}
122121
123-
.blr-input-inner-container {
122+
.blr-input-wrapper {
124123
display: flex;
125124
justify-content: space-between;
126125
align-items: center;
127-
gap: 10px;
128126
border: ${Input.Default.Rest.width} ${Input.Default.Rest.style} ${Input.Default.Rest.color};
129127
border-radius: ${InputBorderRadius};
130128
box-sizing: border-box;
@@ -137,10 +135,6 @@ export const { tokenizedLight: textInputLight, tokenizedDark: textInputDark } =
137135
&.sm {
138136
padding: ${SM.InputField.Padding};
139137
margin: ${SM.InputSlot.Margin};
140-
141-
.blr-input-icon {
142-
right: ${Select.SM.IconPaddingRight};
143-
}
144138
}
145139
146140
&.md {
@@ -151,10 +145,6 @@ export const { tokenizedLight: textInputLight, tokenizedDark: textInputDark } =
151145
&.lg {
152146
padding: ${LG.InputField.Padding};
153147
margin: ${LG.InputSlot.Margin};
154-
155-
.blr-input-icon {
156-
right: ${Select.LG.IconPaddingRight};
157-
}
158148
}
159149
160150
&:hover {

0 commit comments

Comments
 (0)