Skip to content

Commit

Permalink
[MOOSE-80]: Adjust styles for a11y and block style customizations fro…
Browse files Browse the repository at this point in the history
…m within the editor.
  • Loading branch information
Vinsanity committed Jan 26, 2024
1 parent ba08a88 commit 6a380a4
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions wp-content/themes/core/blocks/outermost/socialsharing/style.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ body {
--ssb-button-background-hover-color: var(--wp--preset--color--base-black);
--ssb-button-border-color: var(--wp--preset--color--base-black);
--ssb-button-border-hover-color: var(--wp--preset--color--base-white);
--ssb-button-border-size: 1px;
}

.wp-block-outermost-social-sharing,
Expand All @@ -21,13 +22,22 @@ body {
background-color: var(--ssb-button-background-color);
color: var(--ssb-button-color);
fill: var(--ssb-button-color);
border: 1px solid var(--ssb-button-border-color);
}
border: var(--ssb-button-border-size) solid var(--ssb-button-border-color);

&:hover,
&:focus {
background-color: var(--ssb-button-background-hover-color);
color: var(--ssb-button-hover-color);
fill: var(--ssb-button-hover-color);
border: var(--ssb-button-border-size) solid var(--ssb-button-border-hover-color);
}

.wp-block-outermost-social-sharing:not(.is-style-logos-only) .outermost-social-sharing-link:hover,
.wp-block-outermost-social-sharing:not(.is-style-logos-only) .outermost-social-sharing-link:focus-visible {
background-color: var(--ssb-button-background-hover-color);
color: var(--ssb-button-hover-color);
fill: var(--ssb-button-hover-color);
border: 1px solid var(--ssb-button-border-hover-color);
a:focus-visible {
outline: none;
outline-offset: 0;
background-color: var(--ssb-button-background-hover-color);
color: var(--ssb-button-hover-color);
fill: var(--ssb-button-hover-color);
border-radius: 9999px; /* Value provided by their base CSS for the plugin */
}
}

0 comments on commit 6a380a4

Please sign in to comment.