Skip to content

Commit

Permalink
[NOREF] Tweak style for CalendarDate (#1279)
Browse files Browse the repository at this point in the history
* Tweak style for CalendarDate

* Added abbreviation to model name
  • Loading branch information
patrickseguraoddball authored Aug 5, 2024
1 parent d4252c4 commit 8a2c26b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
10 changes: 7 additions & 3 deletions src/components/CalendarDate/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,13 @@ const CalendarDate = ({
</span>
</time>
</div>
<UswdsReactLink to={link} className="display-flex flex-align-center">
<h4 className="usa-collection__heading">{linkText}</h4>
<Icon.ArrowForward />
<UswdsReactLink to={link}>
<span>
<h4 className="usa-collection__heading display-inline margin-right-1">
{linkText}
</h4>
<Icon.ArrowForward className="top-3px" />
</span>
</UswdsReactLink>
</div>
);
Expand Down
4 changes: 4 additions & 0 deletions src/stylesheets/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,7 @@
.z-400 {
z-index: 400 !important;
}

.top-3px {
top: 3px !important;
}
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ const ModelsApproachingClearance = () => {
<CalendarDate
dateISO={model.basics.clearanceStarts}
link={`/models/${model.id}/read-view`}
linkText={model.modelName}
linkText={`${model.modelName}${
model.abbreviation ? ` (${model.abbreviation})` : ''
}`}
/>
</Card>
))}
Expand Down

0 comments on commit 8a2c26b

Please sign in to comment.