Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use bootstrap icons instead of fontawesome #220

Open
ritterg opened this issue Jun 19, 2024 · 1 comment
Open

Use bootstrap icons instead of fontawesome #220

ritterg opened this issue Jun 19, 2024 · 1 comment

Comments

@ritterg
Copy link

ritterg commented Jun 19, 2024

I use bootstrap icons (https://icons.getbootstrap.com) in my project and don't want to add Font Awesome just for the sort icons.

The problem is that a passable equivalent to the default "fa-sort" in bootstrap is called "bi bi-arrow-down-up", so adding "-up" and "-down" doesn't work.

My solution so far
add an "alias" for "bi-arrow-down-up" in css like this:

.bi-arrow::before {
    content: "\f127";
}

Now I can use "bi bi-arrow" as default icon and adding "-up" and "-down" works as expected.

@hoa1210
Copy link

hoa1210 commented Nov 29, 2024

Your solution is to create an alias for bi-arrow in CSS to manually insert the Font Awesome character code using the content property.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants