How do I remove the blue border that appears when clicking on a uib-accordion-heading?
Solution
:focus {outline:0 !important;}
This code all focus border remove.
Primeng styling accordion to remove the outline from the header when focus
You should target specifically the focused state of the header. Add :focus
to your selector, like this:
::ng-deep .p-accordion .p-accordion-header .p-accordion-header-link:focus {
box-shadow: none !important;
}
Remove border from Bootstrap accordion
DON'T USE !IMPORTANT.
This works:
.panel, .panel-group .panel-heading+.panel-collapse>.panel-body{
border: none;
}
How to get rid of blue outer border when clicking on a form input field?
This CSS snippet should work in all major browsers:
input:focus {
outline:none;
}
If it doesn't, try adding the !important
directive:
input:focus {
outline:none !important;
}
Removing borders in accordion bootstrap angularjs
Accordions are made of panels, so you need to override the CSS of panels. To make it not affect all your panels, you can add the accordion
tag as CSS selector.
This should work:
accordion .panel {
border-width: 0;
}
By the way, I assume that you make use of UI Bootstrap and not the normal Bootstrap CSS/JavaScript.
how to remove blue outline from bootstrap 5 range input
I got the answer by looking at file _custom-forms.scss
from bootstraps src.
This is how you do a live snippet:
input[type="range"]:focus::-webkit-slider-thumb {
box-shadow: none !important;
}
input[type="range"]:focus::-moz-range-thumb {
box-shadow: none !important;
}
input[type="range"]:focus::-ms-thumb {
box-shadow: none !important;
}
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<label for="customRange1" class="form-label">Example range</label>
<input type="range" tabindex="-1" class="form-range" id="customRange1">
How to get rid of a weird form border on focus
It seems like an input, you can use:
input:focus{
outline: none;
}
You can replace input
with textarea
or anything else in your case.
Related Topics
Overflow Property Returning Auto Value
CSS3 Transition - Change Animation "Anchor Point"
Configuring Compass on Windows
CSS3 Background-Size: Cover Doesn't Make Image Cover Vertically
Inheriting Height of a Child Node (Img Inside A)
How Are The Widths of Nested Absolutely Positioned Elements Determined
How to Enable SASS Line Numbers in CSS Output
How to Float Image Inside of Div
Firefox Displaying Table-Cell Incorrectly (Chrome Working Good)
How to Make CSS3 Columns on a Horizontal Plane
Wicked_Pdf Stylesheet Not Working on Heroku
Use CSS to Alternate Ul Bullet Point Styles
How to Use CSS Rotate() in Th Table Tags