Project

General

Profile

Actions

Bug #9556

open

Cannot hide widgets with bootstrap5 d-* classes

Added by Egor Pugin almost 3 years ago. Updated almost 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
01/01/2022
Due date:
% Done:

0%

Estimated time:

Description

Hi,

I'm using WStackedWidget with d-flex widgets.
All of bootstrap5 display (d-*) classes set them as !important (e.g. display: flex!important).
This property is not overwritten when hiding widget (simple display: none).

Possible solution is to move widget inside another WContainerWidget (div), but this in theory can break bootstrap5 grid somehow.

Actions #1

Updated by Egor Pugin almost 3 years ago

For reference https://stackoverflow.com/questions/47514692/bootstrap-4-list-items-that-have-d-flex-class-do-not-respond-to-hide

I tried to move my widget inside div, but styles are broken with it.

Actions

Also available in: Atom PDF