Skip to content

Commit

Permalink
Fixing transforms and removing border radius for chakra buttons.
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldhuereca committed Oct 1, 2022
1 parent 708e726 commit e56bdfb
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/alerts-dlx.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '2e196a0379c294e9a965');
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '6d05935c3e3c1086bc30');
4 changes: 2 additions & 2 deletions build/alerts-dlx.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/alerts-dlx.js.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/js/blocks/bootstrap/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ registerBlockType( metadata, {
props.alertType = 'success';
props.variant = 'default';
props.className = 'is-style-success';
props.alertGroup = 'bootstrap';
return createBlock( 'mediaron/alerts-dlx-bootstrap', props );
},
},
Expand All @@ -28,6 +29,7 @@ registerBlockType( metadata, {
props.alertType = 'success';
props.variant = 'default';
props.className = 'is-style-success';
props.alertGroup = 'bootstrap';
return createBlock( 'mediaron/alerts-dlx-bootstrap', props );
},
},
Expand All @@ -40,6 +42,7 @@ registerBlockType( metadata, {
props.alertType = 'success';
props.variant = 'default';
props.className = 'is-style-success';
props.alertGroup = 'material';
return createBlock( 'mediaron/alerts-dlx-material', props );
},
},
Expand All @@ -50,6 +53,7 @@ registerBlockType( metadata, {
props.alertType = 'success';
props.variant = 'subtle';
props.className = 'is-style-success';
props.alertGroup = 'material';
return createBlock( 'mediaron/alerts-dlx-chakra', props );
},
},
Expand Down
4 changes: 4 additions & 0 deletions src/js/blocks/chakraui/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ registerBlockType( metadata, {
props.alertType = 'success';
props.variant = 'subtle';
props.className = 'is-style-success';
props.alertGroup = 'chakra';
return createBlock( 'mediaron/alerts-dlx-chakra', props );
},
},
Expand All @@ -28,6 +29,7 @@ registerBlockType( metadata, {
props.alertType = 'success';
props.variant = 'subtle';
props.className = 'is-style-success';
props.alertGroup = 'chakra';
return createBlock( 'mediaron/alerts-dlx-chakra', props );
},
},
Expand All @@ -40,6 +42,7 @@ registerBlockType( metadata, {
props.alertType = 'success';
props.variant = 'default';
props.className = 'is-style-success';
props.alertGroup = 'material';
return createBlock( 'mediaron/alerts-dlx-material', props );
},
},
Expand All @@ -50,6 +53,7 @@ registerBlockType( metadata, {
props.alertType = 'success';
props.variant = 'default';
props.className = 'is-style-success';
props.alertGroup = 'bootstrap';
return createBlock( 'mediaron/alerts-dlx-bootstrap', props );
},
},
Expand Down
4 changes: 4 additions & 0 deletions src/js/blocks/material/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ registerBlockType( metadata, {
props.alertType = 'success';
props.variant = 'default';
props.className = 'is-style-success';
props.alertGroup = 'material';
return createBlock( 'mediaron/alerts-dlx-material', props );
},
},
Expand All @@ -29,6 +30,7 @@ registerBlockType( metadata, {
props.alertType = 'success';
props.variant = 'default';
props.className = 'is-style-success';
props.alertGroup = 'material';
return createBlock( 'mediaron/alerts-dlx-material', props );
},
},
Expand All @@ -41,6 +43,7 @@ registerBlockType( metadata, {
props.alertType = 'success';
props.variant = 'subtle';
props.className = 'is-style-success';
props.alertGroup = 'chakra';
return createBlock( 'mediaron/alerts-dlx-chakra', props );
},
},
Expand All @@ -51,6 +54,7 @@ registerBlockType( metadata, {
props.alertType = 'success';
props.variant = 'default';
props.className = 'is-style-success';
props.alertGroup = 'chakra';
return createBlock( 'mediaron/alerts-dlx-bootstrap', props );
},
},
Expand Down
12 changes: 12 additions & 0 deletions src/scss/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,18 @@ button.button-reset.components-button:hover {
}
}

.template-chakra {
a.alerts-dlx-button.button-reset,
a.alerts-dlx-button,
button.button-reset,
button.button-reset:hover,
a.alerts-dlx-button,
button.button-reset.components-button,
button.button-reset.components-button:hover {
border-radius: 0;
}
}

/* Block margins on front-end and block editor */
.template-material,
.template-chakra,
Expand Down

0 comments on commit e56bdfb

Please sign in to comment.