-
-
Notifications
You must be signed in to change notification settings - Fork 540
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Quasar's layout rules for
ui.card
that remove children's border…
…s and shadows (#3444) * remove Quasar's rule for borders and shadows inside QCard * modify rules to apply to tight cards only * add pytest * update documentation
- Loading branch information
1 parent
b7730df
commit c378456
Showing
4 changed files
with
32 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from nicegui import ui | ||
from nicegui.testing import Screen | ||
|
||
|
||
def test_preserve_borders(screen: Screen): | ||
with ui.card(): | ||
ui.label('A').classes('border shadow') | ||
with ui.card().tight(): | ||
ui.label('B').classes('border shadow') | ||
|
||
screen.open('/') | ||
assert screen.find('A').value_of_css_property('border') == '1px solid rgb(229, 231, 235)' | ||
assert screen.find('B').value_of_css_property('border') == '0px none rgb(0, 0, 0)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters