Skip to content

Commit

Permalink
fix(Slug): adjust callout width, fix revert story (#15591)
Browse files Browse the repository at this point in the history
* fix(Slug): adjust callout width, fix revert story

* fix(NumberInput): remove border when input is invalid
  • Loading branch information
tw15egan authored Jan 25, 2024
1 parent c9c91d4 commit 19b48f3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,12 @@
padding-inline-end: convert.to-rem(112px);
}

.#{$prefix}--number__input-wrapper--slug .#{$prefix}--number__control-btn {
.#{$prefix}--number__input-wrapper--slug
input[type='number']:not([data-invalid]):not(
:has(~ .#{$prefix}--slug--revert)
)
~ .#{$prefix}--number__controls
.#{$prefix}--number__control-btn {
border-block-end-color: $ai-border-strong;
}

Expand Down
8 changes: 1 addition & 7 deletions packages/styles/scss/components/slug/_slug.scss
Original file line number Diff line number Diff line change
Expand Up @@ -572,13 +572,7 @@ $sizes: (
}

.#{$prefix}--slug.#{$prefix}--slug--enabled
.#{$prefix}--slug-content--with-actions
.#{$prefix}--toggletip-content {
max-inline-size: convert.to-rem(334px);
}

.#{$prefix}--slug.#{$prefix}--slug--enabled
.#{$prefix}--slug-content:not(.#{$prefix}--slug-content--with-actions)
.#{$prefix}--slug-content
.#{$prefix}--toggletip-content {
max-inline-size: convert.to-rem(320px);
}
Expand Down

0 comments on commit 19b48f3

Please sign in to comment.