Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions blocks/color-palette/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ $color-palette-circle-spacing: 14px;
&:hover {
transform: scale( 1.2 );
}

// Ensure that the <div> that <Dropdown> wraps our toggle button with is full height

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, considering the div was added as intentionally expected to be unstyled, adding styles here seems to defeat its purpose to an extent. See #3958.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, fair.

From #3958 (comment):

An alternative approach I considered was to account for / ignore padding in the popover positioning, but this would be non-trivial to implement because the popover component allows for custom behavior to define anchor parent bounds.

Is this something we should re-consider?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's review this approach after the release. It doesn't seem necessary for this case either, so adding redundant divs should be avoided.

& > div {
height: 100%;
width: 100%;
}
}

.blocks-color-palette__item {
Expand Down