-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
036c1e3
commit 9d074fa
Showing
7 changed files
with
150 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ | |
"@wordpress/block-editor": "^7.0.2", | ||
"@wordpress/blocks": "^11.1.0", | ||
"eslint": "^7.32.0", | ||
"lodash.kebabcase": "^4.1.1", | ||
"prettier": "npm:[email protected]" | ||
}, | ||
"devDependencies": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
.wc-free-shipping-progress-bar { | ||
#progressBar { | ||
align-items: center; | ||
background: transparent; | ||
border: 1px solid #4c566a; | ||
border-radius: 0.25em; | ||
display: flex; | ||
height: 1em; | ||
justify-content: center; | ||
margin-top: 0.5em; | ||
padding: 0.1em; | ||
position: relative; | ||
.progress-container { | ||
align-items: center; | ||
background: transparent; | ||
border: 1px solid currentColor; | ||
border-radius: 0.25em; | ||
display: flex; | ||
height: 1em; | ||
justify-content: center; | ||
margin-top: 0.5em; | ||
padding: 0.1em; | ||
position: relative; | ||
} | ||
|
||
#progress { | ||
background: #4c566a; | ||
height: 100%; | ||
left: 0; | ||
position: absolute; | ||
} | ||
} | ||
.progress-bar { | ||
background: #4c566a; | ||
height: 100%; | ||
left: 0; | ||
position: absolute; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* External dependencies | ||
*/ | ||
import kebabCase from 'lodash.kebabcase'; | ||
|
||
export function getColorClassName( colorContextName, colorSlug ) { | ||
if ( ! colorContextName || ! colorSlug ) { | ||
return undefined; | ||
} | ||
|
||
return `has-${ kebabCase( colorSlug ) }-${ colorContextName }`; | ||
} |