Skip to content

Commit b8c3d3f

Browse files
committed
Update the superseded-by note to use same user-feedback styling, and improve contrast ratio to meet WCAG AA guidelines
1 parent ac1fb59 commit b8c3d3f

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

static/sass/style.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2645,7 +2645,8 @@ p.quote-by-organization {
26452645
background-color: #fff7dc;
26462646
border: 2px solid #ffd343; }
26472647
.level-notice span {
2648-
color: #dca900; }
2648+
color: #765a00;
2649+
font-weight: bold; }
26492650

26502651
/* Something went wrong */
26512652
.level-error {

static/sass/style.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1758,7 +1758,10 @@ $colors: $blue, $psf, $yellow, $green, $purple, $red;
17581758
background-color: lighten( $yellow, 30% );
17591759
border: 2px solid $yellow;
17601760

1761-
span { color: darken( $yellow, 20% ); }
1761+
span {
1762+
color: darken( $yellow, 40% );
1763+
font-weight: bold;
1764+
}
17621765
}
17631766

17641767
/* Something went wrong */

templates/downloads/release_detail.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ <h1 class="page-title">{{ release.name }}</h1>
3838
{% endif %}
3939

4040
{% if latest_in_series %}
41-
<p><strong>Note:</strong> {{ release.name }} has been superseded by <a href="{{ latest_in_series.get_absolute_url }}">{{ latest_in_series.name }}</a>.</p>
41+
<div class="user-feedback level-notice">
42+
<span>Note:</span> {{ release.name }} has been superseded by <a href="{{ latest_in_series.get_absolute_url }}">{{ latest_in_series.name }}</a>.
43+
</div>
4244
{% endif %}
4345

4446
<p><strong>Release date:</strong> {{ release.release_date|date }}</p>

0 commit comments

Comments
 (0)