Skip to content

Commit 55e2b06

Browse files
langermankjonrohan
andauthored
Global focus style CSS from feature flag (#2046)
* extra CSS found from cleaning up feat flag * lint * Create young-trainers-yell.md * fix mixin Co-authored-by: Jon Rohan <yes@jonrohan.codes>
1 parent 9a7981c commit 55e2b06

File tree

3 files changed

+24
-6
lines changed

3 files changed

+24
-6
lines changed

.changeset/young-trainers-yell.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/css": major
3+
---
4+
5+
Global focus style CSS from feature flag (next major)

src/autocomplete/autocomplete.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@
4242
// stylelint-disable-next-line
4343
border: none;
4444
box-shadow: none;
45+
46+
&:focus {
47+
box-shadow: none;
48+
}
49+
50+
&:focus-visible {
51+
box-shadow: none;
52+
}
4553
}
4654
}
4755

src/forms/form-validation.scss

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -235,15 +235,16 @@ dl.form-group > dd, // TODO: Deprecate
235235
}
236236

237237
&.focused {
238-
border-radius: $border-radius;
239-
box-shadow: var(--color-primer-shadow-inset), var(--color-primer-shadow-focus);
238+
@include focusBoxShadowInset(2px, var(--color-accent-fg));
240239

241240
.form-control {
241+
border-color: transparent;
242+
border-bottom-color: var(--color-accent-fg);
242243
box-shadow: none;
243244
}
244245

245246
.drag-and-drop {
246-
border-color: var(--color-accent-emphasis);
247+
border-color: transparent;
247248
}
248249
}
249250
}
@@ -272,7 +273,9 @@ dl.form-group > dd, // TODO: Deprecate
272273
border: $border-width $border-style var(--color-border-default);
273274
}
274275

275-
.comment-form-error { margin-bottom: $spacer-2; }
276+
.comment-form-error {
277+
margin-bottom: $spacer-2;
278+
}
276279

277280
.write-content,
278281
.preview-content {
@@ -317,8 +320,10 @@ div.composer {
317320
min-height: 200px;
318321
}
319322

320-
// stylelint-disable-next-line primer/spacing
321-
.composer .tabnav { margin: 0 0 10px; }
323+
.composer .tabnav {
324+
// stylelint-disable-next-line primer/spacing
325+
margin: 0 0 10px;
326+
}
322327

323328
// Misc CSS
324329
//

0 commit comments

Comments
 (0)