Commit fd74d88
fix(lara-theme): UX and styling fixes across Apps, Tags, Locales portlets and legacy UI (#35157)
## Summary
This PR addresses several visual and UX regressions introduced during
the Lara Theme migration, and improves the UX of the Tags and Locales
portlets.
---
## Legacy UI / SCSS fixes
### Firefox button styling (`_button.scss`, `_common.scss`)
Dojo's `hccss.js` script false-positives high-contrast mode detection
inside Firefox iframes, adding the `dj_a11y` class to `<body>`. This
caused a Dojo rule (`border: black outset medium !important`) to
override button styles in the Permissions tab of Containers and
Templates. Fixed by adding a `.dj_a11y` override block with `!important`
to cancel the border and restore padding.
### File upload button (`_fields.scss`)
Added the standard `::file-selector-button` pseudo-element rule
alongside the existing `-webkit-file-upload-button` one. Kept hover
rules in separate selectors to prevent Firefox from invalidating the
entire combined rule (cross-browser selector invalidation).
### Native `<dialog>` centering (`dotcms.scss`)
Added a `dialog:modal` rule that reliably centers native `<dialog>`
elements opened via `showModal()` using `position: fixed` + `transform:
translate(-50%, -50%)`, with a `::backdrop` overlay. Uses the `:modal`
pseudo-class which only targets `showModal()` dialogs — not inline
`<dialog open>` elements or PrimeNG dialogs (which use `<div>`).
### Compiled output
All SCSS changes compiled into `dotcms.css`.
---
## Login page
Prevented the "Remember Me" label from wrapping onto a second line by
adding `flex items-center gap-2` to the checkbox wrapper div and
`whitespace-nowrap` to the label.
---
## Apps portlet (Settings > Apps)
Two field types existed in the backend API response but had no rendering
logic in the Angular template, making them invisible after the Lara
Theme migration:
- **`HEADING`** — now rendered as an `<h3>` inside a
`dot-apps-configuration-detail__section-header` div (the SCSS class was
already defined).
- **`INFO`** — now rendered as a markdown content box inside a
`dot-apps-configuration-detail__info-box` div. Neither type is added to
the reactive form group.
- Fixed missing `gap-2` between checkboxes and labels in `BOOL` field
rows.
- Added tests covering HEADING rendering, INFO rendering, and form group
exclusion.
---
## Tags portlet
### Bulk action toolbar
When one or more tags are selected, the Add split-button is hidden and
only the bulk action buttons are shown. Button order follows the pattern
of least-destructive on the left: **Delete** → **Export**.
### Import dialog UX
Previously the dialog stayed open after a successful import, showing a
result banner and a "Done" button. The new flow:
1. User selects a CSV file and clicks **Import**
2. Dialog closes immediately on success
3. A global notification appears via `DotMessageDisplayService` (success
or warning for partial imports)
4. The tags list refreshes automatically
Additional changes:
- "Download CSV File" button renamed to **"Download Example CSV File"**
for clarity (`Language.properties`).
- The result banner and Done button are removed from the dialog; buttons
are now always **Cancel / Download Example CSV File / Import**.
- Uses the app-wide `DotMessageDisplayService` (feeds the global
`<p-toast />` in the main layout) — no local `MessageService` or
`<p-toast />` added to the portlet.
---
## Locales portlet
- Added `[rowHover]="true"` to the table for visual consistency with
other portlets.
- Changed the "Add Locale" button label to use the generic `'add'` i18n
key.
- Added `cursor-pointer` to table rows to signal they are clickable.
---
## Test plan
- [ ] Verify Firefox button styling in Containers/Templates >
Permissions tab
- [ ] Verify file upload button hover state in legacy content edit forms
- [ ] Verify native `<dialog>` in Maintenance portlet (e.g. delete key)
is centered and has backdrop
- [ ] Verify "Remember Me" label stays on one line on the login page
- [ ] Verify HEADING and INFO fields appear correctly in Settings > Apps
> Content Analytics (and other apps)
- [ ] Verify Tags bulk actions: select tags → only Delete + Export
shown; deselect → Add restored
- [ ] Verify Tags import: dialog closes immediately after import, global
toast appears, list refreshes
- [ ] Verify "Download Example CSV File" label in import dialog
- [ ] Verify Locales table has hover state and cursor-pointer on rows
- [ ] Run `yarn nx test portlets-dot-tags-portlet` — all 79 tests pass
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Sonnet 4.6 <[email protected]>1 parent c28c581 commit fd74d88
File tree
18 files changed
+407
-227
lines changed- core-web
- apps/dotcms-ui/src/app
- portlets
- dot-apps/components/dot-apps-configuration-detail/components/dot-apps-configuration-detail-form
- dot-templates/dot-template-create-edit
- view/components
- dot-contentlet-editor/components/dot-edit-contentlet
- login/dot-login-component
- libs
- dotcms-scss/jsp/scss
- backend/dot-admin/forms
- dijit/form
- portlets
- dot-locales/portlet/src/lib/dot-locales-list
- dot-tags/src/lib
- dot-tags-import
- dot-tags-list
- dotCMS/src/main/webapp
- WEB-INF/messages
- html/css/dijit-dotcms
18 files changed
+407
-227
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
26 | 59 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
31 | 86 | | |
32 | 87 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
64 | 99 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
85 | 106 | | |
86 | | - | |
87 | | - | |
| 107 | + | |
| 108 | + | |
88 | 109 | | |
89 | 110 | | |
90 | 111 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
21 | 49 | | |
22 | 50 | | |
23 | 51 | | |
| |||
315 | 343 | | |
316 | 344 | | |
317 | 345 | | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
318 | 382 | | |
319 | 383 | | |
320 | 384 | | |
| |||
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
299 | 300 | | |
300 | 301 | | |
301 | 302 | | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
302 | 307 | | |
303 | 308 | | |
304 | 309 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| 76 | + | |
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
| |||
80 | 83 | | |
81 | 84 | | |
82 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
83 | 90 | | |
84 | 91 | | |
85 | 92 | | |
| |||
core-web/apps/dotcms-ui/src/app/view/components/login/dot-login-component/dot-login.component.html
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| 43 | + | |
42 | 44 | | |
43 | | - | |
44 | | - | |
45 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| |||
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
39 | 53 | | |
40 | 54 | | |
41 | 55 | | |
| |||
46 | 60 | | |
47 | 61 | | |
48 | 62 | | |
| 63 | + | |
49 | 64 | | |
50 | 65 | | |
51 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
105 | 124 | | |
106 | 125 | | |
107 | 126 | | |
| |||
0 commit comments