Comments (3)
Yes, in https://getbootstrap.com/docs/5.3/components/alerts/#icons, we're using .me-2
for the SVG so that it adds a right margin.
from bootstrap.
Thanks for reporting this issue @huseeiin
This alert variant uses Bootstrap icons that require setting its size correctly in this example.
Depending on your icons and content, you may want to add more utilities or custom styles.
We are using here the .bi
class that is defined in the CSS of the documentation as the following:
.bi {
width: 1.5rem;
height: 1.5rem
}
If you add this CSS to your CodePen example, it'll work as in our documentation.
I'm closing this issue as this comment resolves it.
from bootstrap.
Thanks for reporting this issue @huseeiin This alert variant uses Bootstrap icons that require setting its size correctly in this example.
Depending on your icons and content, you may want to add more utilities or custom styles.
We are using here the
.bi
class that is defined in the CSS of the documentation as the following:.bi { width: 1.5rem; height: 1.5rem }If you add this CSS to your CodePen example, it'll work as in our documentation. I'm closing this issue as this comment resolves it.
i'm using
<div role="alert" class="alert alert-danger alert-dismissible fade show">
<i class="bi bi-exclamation-triangle-fill"></i>
Hello
<button
type="button"
class="btn-close"
data-bs-dismiss="alert"
aria-label="Close"
></button>
</div>
which solves it but there is no space between the icon and the text. is there a solution?
from bootstrap.
Related Issues (20)
- When I try to select and highlight code from examples the page will automatically scroll to the bottom. HOT 16
- Support for out of the box `$custom-colors` variable being merged with `$theme-colors` map HOT 2
- Add support for clearing floats in the Float utility class HOT 2
- Vertically Tabs HOT 1
- Inclusive language HOT 3
- Missing , in Documentation.
- UI scrolling issue on actual Bootstrap site HOT 2
- $negative-spacers: if($enable-negative-margins, negativify-map($spacers), null) !default; │ unknown function treated as plain CSS ╵ HOT 6
- Compatibility Issue with Bootstrap 5.3.2 and Tabler 1.0.0-beta20
- Stretched-link not adhering to containing block on MacOS & iOS; breaks scroll on responsive table HOT 2
- when clicking in a code sample box it scrolls all the way to the bottom of web page HOT 3
- Uncompiled version of RTL SCSS for customizing Bootstrap
- Adding z-index: 1 to main area causes an active modal to sit behind its backdrop HOT 2
- Automatically scroll when copying code example HOT 1
- Confusing description of spacing utilities notation
- Form validation with input group not changing input-group-text border color HOT 2
- Trying to copy code from the docs forces the page to scroll to the bottom HOT 1
- Update input groups to use `:has()` selector to style addons with form validations
- Bugs inside "Cover Template" and "Product Template" HOT 1
- Regarding the inlcusion of sidenavbar.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bootstrap.