From 858ca1bd1fb400a94652249dddcc87cdbab52515 Mon Sep 17 00:00:00 2001 From: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com> Date: Mon, 9 Aug 2021 15:34:08 +1000 Subject: [PATCH] Add baseline border styles for cover block These new styles have zero specificity and are easily overridden by theme or global styles. They however ensure there is some value set such that a user is more likely to be given immediate visual feedback when editing individual border properties. --- packages/block-library/src/cover/style.scss | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/block-library/src/cover/style.scss b/packages/block-library/src/cover/style.scss index d8c98e5b82ae5..c3e866747f269 100644 --- a/packages/block-library/src/cover/style.scss +++ b/packages/block-library/src/cover/style.scss @@ -282,3 +282,10 @@ section.wp-block-cover-image > h2, padding: 0.44em; text-align: center; } + +// The following sets baseline border styles with zero specificity such that +// when a user begins to alter cover block borders via the block support UI they +// see immediately visual changes. +html :where(.wp-block-cover) { + border: 0 solid currentColor; +}