Skip to content

Commit

Permalink
add colors to badges
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdi-farsi committed Apr 8, 2024
1 parent 6244614 commit de94c6e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion app/assets/stylesheets/dsfr-extensions.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
background-color: var(--background-action-low-blue-france);
}


/* Badge Icon */

.fr-badge--purple-glycine::before,
Expand Down Expand Up @@ -109,4 +108,16 @@
.fr-badge--sm.fr-badge--secondary::before {
-webkit-mask-image: url("icons/business/archive-fill.svg");
mask-image: url("icons/business/archive-fill.svg");
}

/* Badge color */

fr-badge--grey {
background-color: var(--grey-975-75-hover);
color: var(--grey-50-1000);
}

.fr-badge.fr-badge--secondary {
background-color: var(--grey-50-1000);
color: var(--grey-1000-50);
}
2 changes: 1 addition & 1 deletion app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def authorization_request_status_badge(authorization_request, no_icon: false, sc
def authorization_request_status_badge_class(authorization_request)
case authorization_request.state
when 'draft'
%w[fr-badge--purple-glycine fr-badge--no-icon]
%w[fr-badge--grey fr-badge--no-icon]
when 'changes_requested'
%w[fr-badge--warning]
when 'submitted'
Expand Down

0 comments on commit de94c6e

Please sign in to comment.