Skip to content

fix: remove inline styles from security, about and certified templates - #16483

Merged
Skazitron merged 1 commit into
csp-styles-4-2from
csp-styles-4-3
Jun 25, 2026
Merged

Skazitron merged 1 commit into
csp-styles-4-2from
csp-styles-4-3

Conversation

@Skazitron

@Skazitron Skazitron commented Jun 19, 2026 •

Copy link
Copy Markdown
Contributor

Done

  • Chunk of Csp styles 4 #16476
  • Removed inline style= attributes.
  • Added static/sass/_utilities.scss atomic properties

QA

  • Open demo
  • Navigate to pages that are modified by Files changed
  • Ensure there are no breaking CSS changes (eg. buttons work as expected and things don't look strange)
  • Open console and ensure there are no errors caused by removing inline styles.

@webteam-app

Copy link
Copy Markdown

@codecov

codecov Bot commented Jun 19, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 48.36%. Comparing base (87fc100) to head (7022fec).

Additional details and impacted files
@@               Coverage Diff               @@
##           csp-styles-4-2   #16483   +/-   ##
===============================================
  Coverage           48.36%   48.36%           
===============================================
  Files                  37       37           
  Lines                5913     5913           
===============================================
  Hits                 2860     2860           
  Misses               3053     3053           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Onibenjo Onibenjo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on /security/cves/about

Image

side-nav drawer sticks under the header
in production

Image

also
on /security/CVE-2026-10846

Image

compared to

Image

Comment thread templates/security/cves/_cve-card.html Outdated
{% if cve.summarized_status %}
{% set status = cve.summarized_status %}
<div class="col-3 cve-summary col-medium-2" {% if status.icon %}style="padding-top: 0.4rem;"{% endif %}>
<div class="col-3 cve-summary col-medium-2 p-nudge-top--medium" {% if status.icon %}{% endif %}>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the style used to be in the conditional
now it's not

padding-top: 0.4rem was applied only when status.icon was truthy; now p-nudge-top--medium is applied always.

Comment thread templates/security/cves/cve.html Outdated
Comment on lines +302 to +304
<th>Package</th>
<th>Ubuntu Release</th>
<th>Status</th>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 12/18/25rem widths and the Status padding-left are deleted outright. Inconsistent with usn.html/lsn.html, where identical width: 12rem/18rem were converted to u-width--12rem/--18rem.

https://github.com/canonical/ubuntu.com/pull/16483/changes#diff-499b4b85c7d8fc9323fd8183818b5a5aeb7f38228b3ea30c813e9ecf2d5bca50R157

@Onibenjo

Onibenjo commented Jun 19, 2026 •

Copy link
Copy Markdown
Contributor

@Skazitron

Which PR adds cve-section-header, cve-status-icon, cve-td-status--with-icon, u-sticky-below-header, and u-padding-left--x-large? I can't find them in #16485 or anywhere in the csp-styles stack.

@Skazitron
Skazitron merged commit 7fafc7f into csp-styles-4-2 Jun 25, 2026
37 of 44 checks passed
@Skazitron
Skazitron deleted the csp-styles-4-3 branch June 25, 2026 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants