Selected radio options don't render when printed
See original GitHub issueDescribe the bug
Selected form radio inputs are not visible when printed without background colours, the default for most browsers.
Steps to reproduce the bug
- Go to a page with a radio button it, such as https://bootstrap-vue.org/docs/components/form-radio
- Click on a radio button
- Print out the page
- See that the radio button is not visible
Expected behavior
The selected option has a radio button that’s visually distinct from the unselected one.
Versions
Libraries:
- BootstrapVue: 2.4.1
- Bootstrap: 4.4.1
- Vue: 2.6.11
N.B: The bug happens on https://bootstrap-vue.org as well.
Environment:
- Device: [Mac]
- OS: [macOS Catalina]
- Browser: [Safari 13.0.5, Firefox 74 (16 bit)]
- Version: [See above]
Demo link
Additional context
Print styles similar to this can be used as a workaround:
@media print {
input[type='radio'] {
&:checked + label {
&::after {
visibility: hidden;
}
&::before {
top: 17px;
border-width: 4px;
}
}
}
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Radio buttons/Checkboxes not printing properly - MSDN
When I click on the New Location radio button fill in the required data for that selection, and hit CTRL-P, it will print...
Read more >How to use Radio Buttons in a PDF creation - Anvil Works
What I'm trying to do: I'm trying to use radio buttons in the creation of a PDF What I've tried and what's not...
Read more >How to work with radio buttons in React - DEV Community
In this article, we will see how to render radio buttons in react and how to know which radio button is selected.
Read more >AEM forms * Radio button properties in the Field tab
If a single radio button is selected, these options are available: ... not visible in the printed form when printed from within Acrobat...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Looks like it’s been fixed for v5, and there’s an outstanding issue to get it back ported to v4: https://github.com/twbs/bootstrap/issues/28483
@tunaranch BootstrapVue defaults to the custom Bootstrap form inputs. When printing those on the Bootstrap website I get the same issue as BootstrapVue has.
So it is definitely an upstream issue.