Skip to content

Commit

Permalink
Update claim card status tag to accommodate long status names.
Browse files Browse the repository at this point in the history
Remove the 160px max width from tags. There is no need to
split a tag into multiple lines by default.
  • Loading branch information
Nitemaeric committed Oct 10, 2024
1 parent 9946691 commit 60fa54d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
3 changes: 2 additions & 1 deletion app/assets/stylesheets/components/_all.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
@import "organisation_list_item";
@import "phase_banner";
@import "primary_navigation";
@import "secondary_navigation";
@import "search_results";
@import "secondary_navigation";
@import "tag";
@import "typography";
3 changes: 3 additions & 0 deletions app/assets/stylesheets/components/_tag.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.govuk-tag {
max-width: unset;
}
8 changes: 6 additions & 2 deletions app/assets/stylesheets/components/claim/card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@

.claim-card__header {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: flex-start;
gap: govuk-spacing(2);
gap: govuk-spacing(1) govuk-spacing(2);

@include govuk-media-query($until: desktop) {
flex-direction: column;
}

.claim-card__header__name {
display: flex;
Expand Down
6 changes: 3 additions & 3 deletions app/views/claims/support/claims/_details.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<% row.with_value(text: claim.provider.name) %>
<% if policy(claim).edit? %>
<% row.with_action(text: t("change"),
href: create_revision_claims_support_school_claim_path(@school, claim),
href: create_revision_claims_support_school_claim_path(claim.school, claim),
html_attributes: {
class: "govuk-link--no-visited-state",
}) %>
Expand All @@ -39,7 +39,7 @@
<% end %>
<% if policy(claim).edit? %>
<% row.with_action(text: t("change"),
href: create_revision_claims_support_school_claim_mentors_path(@school, claim),
href: create_revision_claims_support_school_claim_mentors_path(claim.school, claim),
html_attributes: {
class: "govuk-link--no-visited-state",
}) %>
Expand All @@ -56,7 +56,7 @@
<% if policy(claim).edit? %>
<% row.with_action(text: t("change"),
href: create_revision_claims_support_school_claim_mentor_training_path(
@school,
claim.school,
claim,
mentor_training.mentor_id,
),
Expand Down

0 comments on commit 60fa54d

Please sign in to comment.