Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/loud-planes-chew.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@drivenets/design-system': patch
---

remove unused form-control css mixins
34 changes: 0 additions & 34 deletions packages/design-system/src/styles/shared/_input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -88,24 +88,6 @@ $textarea-height-default: 120px;
}
}

@mixin form-control-states {
&:hover:not(:disabled) {
border-color: var(--form-control-border-color, var(--color-background-action-hover));
}

&:focus {
border-color: var(--form-control-border-color, var(--color-border-action-primary));
outline: none;
}

&:disabled {
color: var(--color-background-deselected);
background: var(--color-background-secondary);
border-color: var(--color-border-disabled);
cursor: not-allowed;
}
}

@mixin select-trigger-states {
&:hover:not([data-disabled]) {
border-color: var(--form-control-border-color, var(--color-background-action-hover));
Expand Down Expand Up @@ -245,22 +227,6 @@ $textarea-height-default: 120px;
}
}

// Form control base styles
@mixin formControl {
@include base-input-container;
@include form-control-states;
cursor: pointer;
justify-content: space-between;
}

@mixin formControlSmall {
max-height: $input-text-height-small;
}

@mixin formControlDefault {
max-height: $input-text-height-default;
}

// Select trigger styles
@mixin selectControl {
display: grid;
Expand Down
Loading