File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @cloudfour/patterns ' : patch
3
+ ---
4
+
5
+ Prevent border utility classes from accidentally setting ` border-width ` on all edges
Original file line number Diff line number Diff line change 4
4
* To improve the convenience of using these classes without having to specify
5
5
* a border style and color every time, we use the `:where` selector to set some
6
6
* reasonable defaults with no specificity depth.
7
+ *
8
+ * 1. Set a default `border-width` so legacy utility classes won't immediately
9
+ * display visible borders on all sides.
7
10
*/
8
11
9
12
:where([class ^= ' u-border' ], [class *= ' u-border' ]) {
10
13
border-color : var (--theme-color-border-text-group );
11
14
border-style : solid ;
15
+ border-width : 0 ; /* 1 */
12
16
}
13
17
14
18
/* *
You can’t perform that action at this time.
0 commit comments