Skip to content

Commit

Permalink
fix(input-components): change background color from transparent to --…
Browse files Browse the repository at this point in the history
…vs-no-color (#279)
  • Loading branch information
yeriiiii authored Aug 30, 2024
1 parent c2e3f21 commit 1455959
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ $file-input-height-dense: var(--vs-file-input-height, var(--vs-input-comp-height
display: flex;
align-items: center;
overflow: hidden;
background-color: var(--vs-file-input-backgroundColor, transparent);
background-color: var(--vs-file-input-backgroundColor, var(--vs-no-color));
border: var(--vs-file-input-border, 1px solid var(--vs-line-color));
border-radius: var(--vs-file-input-borderRadius, calc(var(--vs-radius-ratio) * var(--vs-radius)));
height: $file-input-height;
Expand Down Expand Up @@ -105,7 +105,7 @@ $file-input-height-dense: var(--vs-file-input-height, var(--vs-input-comp-height
}

&.vs-dragging {
background-color: var(--vs-file-input-dragBackgroundColor, transparent);
background-color: var(--vs-file-input-dragBackgroundColor, var(--vs-no-color));
}

&.vs-readonly {
Expand Down
2 changes: 1 addition & 1 deletion packages/vlossom/src/components/vs-input/VsInput.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
display: flex;
align-items: center;
overflow: hidden;
background-color: var(--vs-input-backgroundColor, transparent);
background-color: var(--vs-input-backgroundColor, var(--vs-no-color));
border: var(--vs-input-border, solid 1px var(--vs-line-color));
border-radius: var(--vs-input-borderRadius, calc(var(--vs-radius-ratio) * var(--vs-radius)));
height: var(--vs-input-height, var(--vs-input-comp-height));
Expand Down
2 changes: 1 addition & 1 deletion packages/vlossom/src/components/vs-select/VsSelect.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
justify-content: space-between;
align-items: center;
flex-wrap: nowrap;
background-color: var(--vs-select-backgroundColor, transparent);
background-color: var(--vs-select-backgroundColor, var(--vs-no-color));
border: var(--vs-select-border, 1px solid var(--vs-line-color));
min-height: var(--vs-select-height, var(--vs-input-comp-height));
border-radius: var(--vs-select-borderRadius, calc(var(--vs-radius-ratio) * var(--vs-radius)));
Expand Down
6 changes: 3 additions & 3 deletions packages/vlossom/src/components/vs-textarea/VsTextarea.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
overflow: hidden;
width: 100%;
height: var(--vs-textarea-height, 10rem);
background-color: var(--vs-textarea-backgroundColor, transparent);
background-color: var(--vs-textarea-backgroundColor, var(--vs-no-color));
color: var(--vs-textarea-fontColor, var(--vs-font-color));
font-size: var(--vs-textarea-fontSize, var(--vs-font-size));
border: var(--vs-textarea-border, solid 1px var(--vs-line-color));
border-radius: var(--vs-textarea-borderRadius, calc(var(--vs-radius-ratio) * var(--vs-radius)));
padding: 0.6rem;
resize: vertical;
padding: var(--vs-textarea-padding, 0.6rem 1.2rem);
resize: var(--vs-textarea-resize, vertical);

&.vs-dense {
font-size: var(--vs-textarea-fontSize, var(--vs-font-size-sm));
Expand Down
2 changes: 2 additions & 0 deletions packages/vlossom/src/components/vs-textarea/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ export interface VsTextareaStyleSet {
fontColor?: string;
fontSize?: string;
height?: string;
padding?: string;
resize?: string;
}

0 comments on commit 1455959

Please sign in to comment.