Skip to content

Commit

Permalink
Add missing box-shadow to text field (primer#2434)
Browse files Browse the repository at this point in the history
Co-authored-by: Jon Rohan <rohan@github.com>
  • Loading branch information
langermank and jonrohan authored Dec 13, 2023
1 parent a7c5e0c commit dc87edf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/wicked-bats-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/view-components": patch
---

Add missing `box-shadow` to text field
6 changes: 4 additions & 2 deletions app/components/primer/alpha/text_field.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -73,21 +73,23 @@
color: var(--fgColor-default);
background-color: var(--bgColor-default);
border: var(--borderWidth-thin) solid var(--control-borderColor-rest, var(--color-border-default));
box-shadow: var(--shadow-inset);

&[disabled] {
color: var(--control-fgColor-disabled);
cursor: not-allowed;
background-color: var(--control-bgColor-disabled);
border-color: var(--control-borderColor-disabled);
opacity: 1;
box-shadow: none;
-webkit-text-fill-color: var(--control-fgColor-disabled);
}

&:not(:focus)[invalid="true"] {
&:not(:focus)[invalid='true'] {
border-color: var(--control-borderColor-danger);
}

&:not(:focus)[invalid="false"] {
&:not(:focus)[invalid='false'] {
border-color: var(--control-borderColor-success);
}

Expand Down

0 comments on commit dc87edf

Please sign in to comment.