Skip to content

Commit

Permalink
DBC22-1994: Fix for sequential order of headings
Browse files Browse the repository at this point in the history
  • Loading branch information
minORC authored and ray-oxd committed Apr 29, 2024
1 parent 16d6aff commit 13ceab8
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/frontend/src/Components/advisories/Advisories.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ export default function Advisories(props) {
</div>

<div className="content">
<h3>
<h2>
{advisories.length > 1 ? 'Advisories ' : 'Advisory '}
in effect
</h3>
</h2>

<p className="description">The following advisory affects a portion of the route you’ve chosen:</p>

Expand Down
6 changes: 5 additions & 1 deletion src/frontend/src/Components/advisories/Advisories.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
}

.content {
h3, .description{
h2 {
font-size: 1.5rem;
}

h2, .description{
color: $BC-Yellow-Dark;
}

Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/Components/advisories/AdvisoriesList.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default function Advisories(props) {
}}>

<div className="advisory-li-title-container" tabIndex={0}>
<h4 className='advisory-li-title'>{advisory.title}</h4>
<h2 className='advisory-li-title'>{advisory.title}</h2>
{showTimestamp &&
<div className="timestamp-container">
<span className="advisory-li-state">{advisory.first_published_at != advisory.last_published_at ? "Updated" : "Published" }</span>
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/Components/advisories/AdvisoriesList.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ ul.advisories-list {
.advisory-li-title {
color: $Type-Link;
font-size: 1rem;
font-weight: 700;
line-height: 1.5;
margin-bottom: 0.25rem;

@media (min-width: 992px) {
font-size: 1.25rem;
font-weight: 700;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/Components/bulletins/BulletinsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default function Bulletins(props) {
}}>

<div className='bulletin-li-title-container' tabIndex={0}>
<h3 className='bulletin-li-title'>{bulletin.title}</h3>
<h2 className='bulletin-li-title'>{bulletin.title}</h2>

{bulletin.teaser &&
<div className='bulletin-li-body'>{bulletin.teaser}</div>
Expand Down
1 change: 1 addition & 0 deletions src/frontend/src/pages/BulletinsListPage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
.bulletin-li-title {
margin-bottom: 8px;
color: $Type-Link;
font-size: 1.5rem;
}

.timestamp-container {
Expand Down

0 comments on commit 13ceab8

Please sign in to comment.