Fix floating labels rendering on Firefox #41347
Merged
+1
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #41342
This PR addresses the floating label rendering issue in Firefox, based on the discussion and analysis at #41342 (comment).
We considered three possible solutions:
autoprefixer
to the previous release. However, it's unclear how the issue will be handled upstream.not kaios <= 2.5
to our.browserlistrc
which appears to resolve the problem in Firefox. This is the solution implemented in this PR. Note: ifautoprefixer
provides an upstream fix, we’ll likely need to revisit and remove this workaround.We chose the second option as a temporary, pragmatic fix, for a quick v5.3.5. A more permanent solution may involve revisiting our use of pseudo-elements once we better understand the root cause or once an upstream fix is released.
Live preview available at https://deploy-preview-41347--twbs-bootstrap.netlify.app/docs/5.3/forms/floating-labels/
Rendering: