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

Updated Font Awesome and minor styles changes #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions build/bundle.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
display: none;
position: absolute;
left: 0;
top: 35px;
top: 43px;
z-index: 10;
width: 100%;
max-height: 250px;
Expand Down Expand Up @@ -114,7 +114,7 @@
display: flex;
flex-direction: column;
align-items: center;
justify-content: center; }
justify-content: start; }

.cf-icon-switcher__options-list i,
.cf-icon-switcher__options-list img {
Expand Down
2 changes: 1 addition & 1 deletion build/bundle.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion core/Providers/Font_Awesome_Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Carbon_Field_Icon\Providers;

class Font_Awesome_Provider implements Icon_Provider_Interface {
const VERSION = '5.8.1';
const VERSION = '6.4.2';

/**
* Enqueue assets in the backend.
Expand Down Expand Up @@ -40,6 +40,8 @@ public function parse_options() {
$icon_class = 'fab';
} else if ( $icon['styles'][0] === 'solid' ) {
$icon_class = 'fas';
} else if ( $icon['styles'][0] === 'regular' ) {
$icon_class = 'far';
}

$options[ $value ] = array(
Expand Down
2 changes: 1 addition & 1 deletion data/fontawesome.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
display: none;
position: absolute;
left: 0;
top: 35px;
top: 43px;
z-index: 10;
width: 100%;
max-height: 250px;
Expand Down Expand Up @@ -149,7 +149,7 @@
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
justify-content: start;
}

.cf-icon-switcher__options-list i,
Expand Down