Comments (14)
Using less to set the font family to "Font Awesome 5 Free" still leaves it not working.
The font-weight, also needs to be overridden to be 900 (at least for the free version). Based on my checking, as low as 600 will also work, but why complicate things.
This should either be changed in the project, or added as a variable for less/sass users (or both)
from awesome-bootstrap-checkbox.
This helped me to restore checkbox.
In CSS
.abc-checkbox input[type="checkbox"]:checked+label::after,
.abc-checkbox input[type="radio"]:checked+label::after {
font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free";
content: "\f00c";
font-weight: 900;
}
In HTML
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css">
from awesome-bootstrap-checkbox.
The font-weight needs to be 900
from awesome-bootstrap-checkbox.
While this works with the CSS version of FA5:
.abc-checkbox input[type="checkbox"]:checked+label::after,
.abc-checkbox input[type="radio"]:checked+label::after {
font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free";
content: "\f00c";
font-weight: 900;
}
it does not work if you're using the FA5 Pro JS/SVG option. Any one got any thoughts on that one?
from awesome-bootstrap-checkbox.
The main resaon for this problem is the font-family
not work in Font Awesome 5, change to Font Awesome 5 Free
or Font Awesome 5 Pro
is OK.
I wander why they want to change the name . WTF
from awesome-bootstrap-checkbox.
Hi!
Try this:
.abc-checkbox input[type="checkbox"]:checked + label::after,
.abc-checkbox input[type="radio"]:checked + label::after {
font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free";
content: "\f00c"; }
ps I use Font Awesome 5 Pro
from awesome-bootstrap-checkbox.
Hi,
It's work with awesome-boostrap-checkbox 0.3.7 ?
I try:
.checkbox input[type="checkbox"]:checked + label::after,
.checkbox input[type="radio"]:checked + label::after {
font-family: "Font Awesome 5 Free";
content: "\f00c";
}
input[type="checkbox"].styled:checked + label:after,
input[type="radio"].styled:checked + label:after {
font-family: "Font Awesome 5 Free";
content: "\f00c";
}
But doesn't work :(
from awesome-bootstrap-checkbox.
I'm using Font Awesome 5 and importing the fa-check icon with the following code on app.module.ts
import {faCheck} from '@fortawesome/fontawesome-free-solid';
fontawesome.library.add(faCheck);
The icon is shown without problem using a classic HTML tag in the templates of any component, even lazy loaded ones.
<span class="fas fa-check"></span>
... but Font Awesome 5 for Angular uses JS and SVG internally instead of a font, so the suggested workaround doesn't fix the problem with abc-checkbox, in this case.
At the end I've used https://icomoon.io to export just the fa-check icon in a font, imported that and changed the above workaround to use my single icon font.
from awesome-bootstrap-checkbox.
You can use web fonts with font awesome. The package has the fonts and css in the web-fonts-with-css folder.
from awesome-bootstrap-checkbox.
@ellenhutchings is it possible to import only the needed fa-check icon icon from the web-fonts-with-css folder?
from awesome-bootstrap-checkbox.
I tried @NightMan-1 's solution but it didn't work. I was on AngularJS btw... Strangely the plugin works perfectly on Angular5 🤔
from awesome-bootstrap-checkbox.
But doesn't work ,too :(
from awesome-bootstrap-checkbox.
WIthout the actual fonts and classes the checkbox stuff won't work. Awesome bootstrap checkbox uses web fonts, and already has the check icon information
from awesome-bootstrap-checkbox.
This works for me scss
$font-family-icon: 'Font Awesome 5 Free';
$fa-var-check: "\f00c";
@import '~awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.scss';
.checkbox input[type="checkbox"]:checked+label::after,
.checkbox input[type="radio"]:checked+label::after {
font-weight: 600;
}
from awesome-bootstrap-checkbox.
Related Issues (20)
- printing - selected radio button not visible HOT 1
- Undefined variable: "$input-border-color" in awesome-bootstrap-checkbox.scss HOT 2
- border is not pretty when focus expecially the radio box HOT 3
- Incompatibility list with bootstrap v4.0.0-beta HOT 1
- Undefined variable: "$form-check-input-gutter" HOT 3
- Not working with Asp webforms HOT 2
- Integration with bootstrap-vue HOT 1
- Checkbox click not working on 1.0.0 HOT 2
- Checkbox is not working without these specific attributes HOT 1
- Long label - prevent text from wrapping?
- Support for react-bootstrap
- :after content doesn't display on ios
- Border thickness as variable
- checkbox and radio buttons HOT 1
- Checkbox Inside table column HOT 2
- label padding-left creates a clickable area to the right of the checkbox when used in table
- Error npm install awesome-bootstrap-checkbox
- Latest version missing from npm?
- Is it normal to have indeterminate state on input radio when nothing are selected ?
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 awesome-bootstrap-checkbox.