Skip to content

Commit 7958d33

Browse files
committed
OCPBUGS-25780: fix bug where Update cluster modal will not open
1 parent 0ed60b5 commit 7958d33

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

frontend/packages/console-shared/src/components/dropdown/dropdown-with-switch/DropdownWithSwitchToggle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const DropdownWithSwitchToggle: React.FC<DropdownWithSwitchToggleProps> = ({
4747
direction="down"
4848
enableFlip={false}
4949
isVisible={isOpen}
50-
popper={menu}
50+
popper={<>{menu}</>} // fragment is necessary to avoid a bug in PatternFly v5 Popper
5151
position="left"
5252
trigger={
5353
<MenuToggle

frontend/public/style/_common.scss

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,15 @@ dl.co-inline {
165165
margin: 15px 0;
166166
}
167167

168-
// TODO: remove when $font-size-base goes away or to 16px
169-
// and when override `label` font-weight style from _bootstrap-residual.scss is removed
170-
.co-switch-label .pf-v5-c-switch__label {
171-
font-size: $font-size-base;
172-
font-weight: var(--pf-v5-global--FontWeight--normal);
168+
.co-switch-label {
169+
margin-bottom: 0;
170+
171+
// TODO: remove when $font-size-base goes away or to 16px
172+
// and when override `label` font-weight style from _bootstrap-residual.scss is removed
173+
.pf-v5-c-switch__label {
174+
font-size: $font-size-base;
175+
font-weight: var(--pf-v5-global--FontWeight--normal);
176+
}
173177
}
174178

175179
.co-table-container {

0 commit comments

Comments
 (0)