Skip to content
Merged
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/lazy-turkeys-eat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@cloudfour/patterns': patch
---

Prevent border utility classes from accidentally setting `border-width` on all edges
4 changes: 4 additions & 0 deletions src/utilities/border/border.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@
* To improve the convenience of using these classes without having to specify
* a border style and color every time, we use the `:where` selector to set some
* reasonable defaults with no specificity depth.
*
* 1. Set a default `border-width` so legacy utility classes won't immediately
* display visible borders on all sides.
*/

:where([class^='u-border'], [class*=' u-border']) {
border-color: var(--theme-color-border-text-group);
border-style: solid;
border-width: 0; /* 1 */
}

/**
Expand Down