Skip to content

Commit

Permalink
[#150] Fix duplicate editor background (#159)
Browse files Browse the repository at this point in the history
* [#150] Fix duplicate editor background

* [#150] Don't add unnecessary attribute

* [#150] Reverted previous change due to errors.

* [N/A] Button Hover bug fix
  • Loading branch information
bd-viget authored Oct 18, 2024
1 parent f3dd141 commit 6d56877
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion wp-content/plugins/acf-blocks-toolkit/includes/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function block_attrs( array $block, string $custom_class = '', array $attrs = []
$attrs['class'] = $block_class;
}

$block_styles = get_core_styles( $block );
$block_styles = ! is_admin() ? get_core_styles( $block ) : '';
if ( ! empty( $attrs['style'] ) ) {
$attrs['style'] .= $block_styles;
} else {
Expand Down
2 changes: 1 addition & 1 deletion wp-content/themes/wp-starter/blocks/breadcrumbs/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

/** Breadcrumb Block Style */
:root
.wp-block-buttons.is-style-breadcrumbs,
.wp-block-buttons.is-style-breadcrumbs
.wp-block-button__link:not(.btn-text) {
padding: 0;
color: var(--wp--preset--color--black);
Expand Down
22 changes: 11 additions & 11 deletions wp-content/themes/wp-starter/src/plugins-tailwind/buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,35 +27,35 @@ module.exports = plugin.withOptions(function (options = {}) {
...base,
[`@apply
bg-black text-white
hover:bg-black/90
active:bg-black/80
hover:bg-black/85
active:bg-black/70
focus-visible:bg-black focus-visible:ring-black/50`]: {},
},

'.btn-default-light': {
...base,
[`@apply
bg-black text-white
hover:bg-black/90
active:bg-black/80
focus-visible:bg-black focus-visible:ring-white/50`]: {},
bg-white text-black
hover:bg-white/85
active:bg-white/70
focus-visible:bg-white/10 focus-visible:ring-white/15`]: {},
},

'.btn-outline': {
...base,
[`@apply
border border-current bg-transparent text-black
hover:border-black/90 hover:border-black hover:text-black
active:border-black/80 active:text-black
focus-visible:border-black/90 focus-visible:ring-black/50`]: {},
hover:bg-black/5 hover:border-black hover:text-black
active:bg-black/15 active:text-black
focus-visible:bg-black/10 focus-visible:ring-black/15`]: {},
},

'.btn-outline-light': {
...base,
[`@apply
border-current text-white bg-transparent
hover:bg-white/25
active:bg-white/30
hover:bg-white/15
active:bg-white/25
focus-visible:bg-black/30 focus-visible:ring-white/50`]: {},
},

Expand Down

0 comments on commit 6d56877

Please sign in to comment.