Skip to content

Commit

Permalink
fix weird font stuff by updating kirki (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesros161 authored Mar 15, 2024
1 parent f87bb75 commit 05f6888
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 6 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ Crio is a WordPress SuperTheme that allows front-end designers, developers and o

## Changelog ##

### 2.22.2 ###
* Bug Fix: Updated kirki user-agent when making Google Fonts Requests [2524](https://github.com/themeum/kirki/issues/2524)

### 2.22.1 ###
* Bug Fix: Do not allow only a number for the font size [#112](https://github.com/BoldGrid/crio/issues/112)
* Bug Fix: Comments - currentcolor overrides Customizer settings [#57](https://github.com/BoldGrid/crio/issues/57)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "boldgrid-theme-framework",
"version": "2.22.1",
"version": "2.22.2",
"description": "BoldGrid Theme Framework",
"main": "index.js",
"engines": {
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: news, blog, e-commerce, sticky-post, theme-options, threaded-comments, ful
Requires PHP: 5.6
Requires at least: 4.8
Tested up to: 6.5
Stable tag: 2.22.1
Stable tag: 2.22.2
License: GPL-3.0-or-later
License URI: https://www.gnu.org/licenses/gpl-3.0-standalone.html

Expand All @@ -22,6 +22,9 @@ This version changes the way the color palette CSS is generated. If you are usin

## Changelog ##

== 2.22.2 ==
* Bug Fix: Updated kirki user-agent when making Google Fonts Requests [2524](https://github.com/themeum/kirki/issues/2524)

== 2.22.1 ==
* Bug Fix: Do not allow only a number for the font size [#112](https://github.com/BoldGrid/crio/issues/112)
* Bug Fix: Comments - currentcolor overrides Customizer settings [#57](https://github.com/BoldGrid/crio/issues/57)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ export default function() {
};

var setActivePattern = function() {

/*
* If a pattern is not set, but the control is active, then
* it will be an empty string, which will match ALL patterns.
Expand Down
3 changes: 2 additions & 1 deletion src/assets/js/customizer/typography/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class Preview {
sizeUnit = size.replace( sizeBase, '' ),
sizeMatches = sizeUnit.match( /(em|ex|%|px|cm|mm|in|pt|pc|rem)/ );

if ( sizeUnit === '' ) {
if ( '' === sizeUnit ) {
sizeUnit = 'px';
}

Expand Down Expand Up @@ -108,6 +108,7 @@ export class Preview {
// Selector lists are pulled from the customizer options matched to controlType.
} else if ( controlType === selector.type ) {
css += rule + '{font-size:' + sanitizeFontSize( to['font-size'] ) + ';';

// Adds css for font variants.
if ( fontWeight && fontStyle ) {
css += 'font-style:' + fontStyle + ';';
Expand Down
2 changes: 1 addition & 1 deletion src/boldgrid-theme-framework.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: BoldGrid Theme Framework
* Plugin URI: https://www.boldgrid.com/docs/configuration-file
* Description: BoldGrid Theme Framework is a library that allows you to easily make BoldGrid themes. Please see our reference guide for more information: https://www.boldgrid.com/docs/configuration-file
* Version: 2.22.1
* Version: 2.22.2
* Author: BoldGrid.com <[email protected]>
* Author URI: https://www.boldgrid.com/
* Text Domain: bgtfw
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Author: BoldGrid
Theme URI: https://www.boldgrid.com/themes/crio/
Author URI: https://www.boldgrid.com/
Description: Crio is a WordPress SuperTheme that allows front-end designers, developers and other web professionals to create without bounds or restrictions. Crio's advanced customization options are completely integrated with the WordPress Customizer API, providing you with a powerful, but familiar interface to customize your website. Our integration gives you granular control over many elements straight from the Customizer, and even device previews so you can see how your site looks on different devices. Crio’s unique color palette system keeps colors consistent across your site. Drag and drop colors in your palette to increase or decrease the usage of that color throughout your website. Use the advanced controls to create a custom Header, Footer, or Blog Page layout. Be Bold and stand above the rest with Prime by BoldGrid!
Version: 2.22.1
Version: 2.22.2
Requires at least: 5.5
Tested up to: 6.4
Requires PHP: 5.6
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8202,7 +8202,7 @@ kind-of@^6.0.0, kind-of@^6.0.2:

"kirki-toolkit@https://github.com/boldgrid/kirki.git#crio-kirki":
version "3.0.43"
resolved "https://github.com/boldgrid/kirki.git#a75b01f0d3157ca84d2f7636a8765578d4f27521"
resolved "https://github.com/boldgrid/kirki.git#23c74869298925cca6fa1e0a9ac6fb6786abbac3"

lazy-req@^1.0.0:
version "1.1.0"
Expand Down

0 comments on commit 05f6888

Please sign in to comment.