Skip to content

Commit e5b61cf

Browse files
stefanoriganoqsm-odoo
authored andcommitted
[FIX] test_themes: allow flexibility on align-self-*-* uses
This allows more flexibility on the use of `align-self-*-*` classes combination to better handle responsiveness in some scenario. Related to task-4373543 Part-of: #1054 Related: odoo/odoo#189299 Signed-off-by: Quentin Smetz (qsm) <[email protected]>
1 parent 7ced568 commit e5b61cf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test_themes/tests/test_new_page_templates.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@
3737
CONFLICTUAL_CLASSES_RE = {
3838
# Align
3939
re.compile(r'^align-(?!(self|items)-).+'): [],
40-
re.compile(r'^align-self-.+'): [],
40+
re.compile(r'^align-self-(?:start|center|end)$'): [],
41+
re.compile(r'^align-self-sm-(?:start|center|end)$'): [],
42+
re.compile(r'^align-self-md-(?:start|center|end)$'): [],
43+
re.compile(r'^align-self-lg-(?:start|center|end)$'): [],
44+
re.compile(r'^align-self-xl-(?:start|center|end)$'): [],
45+
re.compile(r'^align-self-xxl-(?:start|center|end)$'): [],
4146
re.compile(r'^align-items-.+'): [],
4247
# BG
4348
re.compile(r'^bg(-|_)'): [

0 commit comments

Comments
 (0)