-
Notifications
You must be signed in to change notification settings - Fork 46
CCSD-602 toast success CSS issue #3038
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
f8e4f18
c0d74f3
0a95bc2
d261038
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,5 +1,8 @@ | ||||||||||
| # Changelog | ||||||||||
| ## [1.8.41] - [26-Aug-2025] | ||||||||||
|
|
||||||||||
| - toast success h2 CSS issue fixed | ||||||||||
|
|
||||||||||
|
Comment on lines
+4
to
+5
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Tighten wording, spacing, and traceability in the 1.8.41 entry.
Apply this diff: -- toast success h2 CSS issue fixed
-
+- CCSD-602: Fix toast-success `h2` width in employee header.
+📝 Committable suggestion
Suggested change
🧰 Tools🪛 LanguageTool[grammar] ~4-~4: There might be a mistake here. (QB_NEW_EN_OTHER) 🤖 Prompt for AI Agents |
||||||||||
| ## [1.8.40] - [25-Aug-2025] | ||||||||||
|
|
||||||||||
| - Toast error message width issue in Property Tax module(sandbox) | ||||||||||
|
|
||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "name": "@egovernments/digit-ui-css", | ||
| "version": "1.8.40", | ||
| "version": "1.8.41", | ||
| "license": "MIT", | ||
| "main": "dist/index.css", | ||
| "author": "Jagankumar <[email protected]>", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -874,6 +874,6 @@ input[type="number"] { | |
| overflow: visible !important; | ||
| } | ||
| } | ||
| .pt-error h2 { | ||
| width: auto !important; | ||
| } | ||
| .employeeCard .label-field-pair .toast-success h2 { | ||
| width: auto !important; | ||
| } | ||
|
Comment on lines
+877
to
+879
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Avoid !important and colocate the rule with the toast component styles. The override is appended globally and uses a deep descendant with !important. Prefer scoping within the toast stylesheet to raise specificity naturally and reduce global coupling. Apply this minimal diff now (drop !important, keep current scope), then consider moving to - .employeeCard .label-field-pair .toast-success h2 {
- width: auto !important;
- }
+ .employeeCard .label-field-pair .toast-success h2 {
+ width: auto;
+ }Option (follow-up, outside this hunk) in /* Scoped to the component; later in the file to win specificity without !important */
.toast-success {
h2 { width: auto; }
}Please verify that removing 🤖 Prompt for AI Agents |
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -7,7 +7,7 @@ | |||||||||||||||
| <link | ||||||||||||||||
| href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;500;700&family=Roboto:wght@400;500;700&display=swap" | ||||||||||||||||
| rel="stylesheet" type="text/css" /> | ||||||||||||||||
| <link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected].40/dist/index.css" /> | ||||||||||||||||
| <link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected].41/dist/index.css" /> | ||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainVersion bump looks correct; verify asset availability and cache. Ensure 1.8.41 is published and accessible on unpkg and that no CDN cache issues persist in lower environments. Run: 🏁 Script executed: #!/bin/bash
# Verify the CSS asset is published and reachable
set -euo pipefail
URL="https://unpkg.com/@egovernments/[email protected]/dist/index.css"
curl -sI "$URL" | sed -n '1p;/^content-length:/Ip;/^etag:/Ip;/^last-modified:/Ip'
# Optionally compute SRI to pin integrity
HASH=$(curl -s "$URL" | openssl dgst -sha384 -binary | openssl base64 -A)
echo "sha384-$HASH"Length of output: 584 CSS Asset Unavailable on unpkg; package version 1.8.41 not published The URL
Affected location:
Once the asset is published and the link succeeds, update this PR with the integrity attributes. 🤖 Prompt for AI Agents🧹 Nitpick (assertive) Consider adding Subresource Integrity (SRI) to harden third-party CSS loading. Pinning the integrity hash prevents tampering and accidental mismatches if the CDN serves unexpected bytes. After computing the SRI (see previous comment), update the tag: - <link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected]/dist/index.css" />
+ <link
+ rel="stylesheet"
+ href="https://unpkg.com/@egovernments/[email protected]/dist/index.css"
+ integrity="sha384-REPLACE_WITH_COMPUTED_HASH"
+ crossorigin="anonymous"
+ />📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||
| <link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected]/dist/index.css" /> | ||||||||||||||||
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||||||||||||||||
| <meta name="theme-color" content="#00bcd1" /> | ||||||||||||||||
|
|
||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧹 Nitpick (assertive)
Fix MD022: add a blank line before the 1.8.41 heading.
markdownlint flags “Headings should be surrounded by blank lines” because Line 2 follows the H1 without a blank line.
Apply this diff:
# Changelog + ## [1.8.41] - [26-Aug-2025]📝 Committable suggestion
🧰 Tools
🪛 LanguageTool
[grammar] ~2-~2: Use correct spacing
Context: # Changelog ## [1.8.41] - [26-Aug-2025] - toast success h2 CSS issue fixed ## [...
(QB_NEW_EN_OTHER_ERROR_IDS_5)
🪛 markdownlint-cli2 (0.17.2)
2-2: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Above
(MD022, blanks-around-headings)
🤖 Prompt for AI Agents