Skip to content

Commit

Permalink
Merge pull request #1733 from tomusborne/fix/block-settings-style-sho…
Browse files Browse the repository at this point in the history
…rtcut-value

Fix: Show correct at-rule style value in block settings
  • Loading branch information
tomusborne authored Jan 28, 2025
2 parents bb48311 + 4e04d1e commit 6c52bb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hoc/withStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function withStyles( WrappedComponent ) {
function getStyleValue( property, atRuleValue = '', nestedRuleValue = '' ) {
if ( nestedRuleValue ) {
if ( atRuleValue ) {
return styles?.[ atRuleValue ]?.[ nestedRuleValue ]?.[ property ] ?? '';
return styles?.[ nestedRuleValue ]?.[ atRuleValue ]?.[ property ] ?? '';
}

return styles?.[ nestedRuleValue ]?.[ property ] ?? '';
Expand Down

0 comments on commit 6c52bb9

Please sign in to comment.