Skip to content

Commit 67cc0da

Browse files
fix(hint): align dropdown under actions toggle
1 parent e86ed22 commit 67cc0da

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

elements/pf-dropdown/pf-dropdown.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,14 @@ pf-dropdown-menu,
214214
--pf-c-dropdown__menu--Top,
215215
calc(100% + var(--pf-global--spacer--xs, 0.25rem))
216216
) !important;
217-
left: 0 !important;
217+
left: var(
218+
--pf-c-dropdown__menu--Left,
219+
0
220+
) !important;
221+
right: var(
222+
--pf-c-dropdown__menu--Right,
223+
auto
224+
) !important;
218225
z-index: var(
219226
--pf-c-dropdown__menu--ZIndex,
220227
var(--pf-global--ZIndex--sm, 200)

elements/pf-hint/pf-hint.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@
6767
#actions ::slotted(pf-dropdown) {
6868
margin-top: var(--pf-c-hint__actions--c-dropdown--MarginTop);
6969
--pf-c-dropdown__menu--MinWidth: auto;
70+
--pf-c-dropdown__menu--Left: auto;
71+
--pf-c-dropdown__menu--Right: 0;
7072
}
7173

7274
#title {

0 commit comments

Comments
 (0)