aglinxinyuan opened a new pull request, #9027:
URL: https://github.com/apache/texera/pull/9027
### What changes were proposed in this PR?
Deletes `admin-gmail.component.scss` and its `styleUrls` entry in
`admin-gmail.component.ts`. **−27 lines.** There is no behaviour change.
The stylesheet's only rule is `.form { ... }`. The component uses emulated
encapsulation, so the rule can only match an element in its own template, and
that template has no element with class `form`. The `<form nz-form>` element
doesn't match: `.form` is a class selector, and `NzFormDirective` adds only
`ant-form*` classes. Nothing else references the file (`angular.json` styles,
`@use`, `@import`). With no styles left, Angular compiles the component without
view emulation, so the rendered DOM only loses the generated `_ngcontent`
attributes.
### History
| | |
| --- | --- |
| **Introduced by** | #2027 (2023-10-11), "Introduce Email Notification
System". It copied `.form` from the login stylesheet into the new component |
| **Usage removed by** | **never used**. No version of the Gmail template
has had a `form` class |
It has never applied, in the three years since it was added.
### Any related issues, documentation, discussions?
Closes #9024
### How was this PR tested?
No new tests; the spec never referenced the stylesheet.
From `frontend/`:
- `npx ng test --watch=false --include='**/admin-gmail.component.spec.ts'`:
10 tests, all pass. No other spec renders the component.
- `yarn format:ci`: clean.
- `npx ng build`: success.
### Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 5.5)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]