Skip to content

Commit

Permalink
[v4] [core] fix(Textarea): match text input border style (#5006)
Browse files Browse the repository at this point in the history
  • Loading branch information
adidahiya authored Nov 3, 2021
1 parent 7244616 commit d20a08c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 29 deletions.
48 changes: 23 additions & 25 deletions packages/core/src/blueprint.scss
Original file line number Diff line number Diff line change
Expand Up @@ -286,38 +286,36 @@ table.#{$ns}-html-table {
}

// Contrast for inputs
.#{$ns}-input-group {
.#{$ns}-input {
// Use intent-styled box-shadows for default intent
box-shadow: input-transition-shadow($input-shadow-color-focus),
inset border-shadow(1, $gray2),
$pt-input-box-shadow;
.#{$ns}-input {
// Use intent-styled box-shadows for default intent
box-shadow: input-transition-shadow($input-shadow-color-focus),
inset border-shadow(1, $gray2),
$pt-input-box-shadow;

&:focus {
box-shadow: input-transition-shadow($input-shadow-color-focus, true), $input-box-shadow-focus;
}
&:focus {
box-shadow: input-transition-shadow($input-shadow-color-focus, true), $input-box-shadow-focus;
}

.#{$ns}-dark & {
box-shadow: dark-input-transition-shadow($dark-input-shadow-color-focus),
inset border-shadow(1, $gray3),
$pt-dark-input-box-shadow;
.#{$ns}-dark & {
box-shadow: dark-input-transition-shadow($dark-input-shadow-color-focus),
inset border-shadow(1, $gray3),
$pt-dark-input-box-shadow;

&:focus {
box-shadow: dark-input-transition-shadow($dark-input-shadow-color-focus, true),
$pt-dark-input-box-shadow;
}
&:focus {
box-shadow: dark-input-transition-shadow($dark-input-shadow-color-focus, true),
$pt-dark-input-box-shadow;
}
}

&:disabled {
box-shadow: none;
}
&:disabled {
box-shadow: none;
}
}

@each $intent, $color in $dark-input-intent-box-shadow-colors {
&.#{$ns}-intent-#{$intent} {
.#{$ns}-input {
@include pt-dark-input-intent($color);
}
@each $intent, $color in $dark-input-intent-box-shadow-colors {
&.#{$ns}-intent-#{$intent} {
.#{$ns}-input {
@include pt-dark-input-intent($color);
}
}
}
Expand Down
4 changes: 0 additions & 4 deletions packages/core/src/components/forms/_input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,4 @@ textarea.#{$ns}-input {
&.#{$ns}-small {
padding: $input-small-padding;
}

.#{$ns}-dark & {
@include pt-dark-input();
}
}

1 comment on commit d20a08c

@blueprint-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[v4] [core] fix(Textarea): match text input border style (#5006)

Previews: documentation | landing | table | modern colors demo

Please sign in to comment.