Skip to content

Commit 7afff4d

Browse files
authored
Small v6 Reboot updates (#42252)
* Fixes #41700: Remove moz-focus-inner * Update more Reboot styles to remove button and select text-transform
1 parent eac33c0 commit 7afff4d

2 files changed

Lines changed: 4 additions & 13 deletions

File tree

scss/content/_reboot.scss

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -441,11 +441,6 @@ $reboot-mark-tokens: defaults(
441441
line-height: inherit;
442442
}
443443

444-
// Remove the inheritance of text transform in Firefox
445-
button,
446-
select {
447-
text-transform: none;
448-
}
449444
// Set the cursor for non-`<button>` buttons
450445
//
451446
// Details at https://github.com/twbs/bootstrap/pull/30562
@@ -489,13 +484,6 @@ $reboot-mark-tokens: defaults(
489484
}
490485
}
491486

492-
// Remove inner border and padding from Firefox, but don't restore the outline like Normalize.
493-
494-
::-moz-focus-inner {
495-
padding: 0;
496-
border-style: none;
497-
}
498-
499487
// 1. Textareas should really only resize vertically so they don't break their (horizontal) containers.
500488

501489
textarea {
@@ -552,7 +540,8 @@ $reboot-mark-tokens: defaults(
552540
padding: 0;
553541
}
554542

555-
::-webkit-inner-spin-button {
543+
::-webkit-inner-spin-button,
544+
::-webkit-outer-spin-button {
556545
height: auto;
557546
}
558547

site/src/content/docs/migration.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ Bootstrap 6 is a major release with many breaking changes to modernize our codeb
166166
### Reboot
167167

168168
- Relocated heading classes (like `.h1`) and some type classes (`.mark` and `.small`) to Reboot from `_type.scss`. This avoids a dependency in Sass modules and we like to avoid extending selectors in general.
169+
- Removed the `::-moz-focus-inner` styles, as the pseudo selector is deprecated in Firefox.
170+
- Removed `text-transform: none` from `button` and `select` elements, as Firefox no longer incorrectly inherits text-transform.
169171

170172
### Forms
171173

0 commit comments

Comments
 (0)