Skip to content

Commit 5a25d89

Browse files
authored
fix: avoid shifting notification center regions on hover (#9893)
1 parent 6db973c commit 5a25d89

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/notification/src/styles/vaadin-notification-container-base-styles.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,12 @@ export const notificationContainerStyles = css`
7979
padding: var(--_paint-area);
8080
}
8181
82+
[region]:not([region='middle'], [region$='center']):where(:hover, :focus-within) {
83+
margin-inline: calc(var(--_paint-area) * -1);
84+
}
85+
8286
[region]:not([region='middle']):where(:hover, :focus-within) {
83-
margin: calc(var(--_paint-area) * -1);
87+
margin-block: calc(var(--_paint-area) * -1);
8488
}
8589
8690
[region-group='top'] > [region] {

0 commit comments

Comments
 (0)