Skip to content

Commit

Permalink
Address PR commits - to be squashed
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesCGDS committed Oct 16, 2024
1 parent ac60a53 commit b1e4282
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
@include govuk-link-style-inverse;
}

.gem-c-organisation-logo__crest--eo {
.gem-c-organisation-logo__crest {
filter: brightness(0) invert(1);

&:focus {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ examples:
name: "Prime Minister's Office,<br>10 Downing Street"
url: '/government/organisations/prime-ministers-office-10-downing-street'
brand: 'prime-ministers-office-10-downing-street'
crest: 'no10'
crest: 'eo'
office_of_the_advocate_general_for_scotland:
data:
organisation:
Expand Down Expand Up @@ -188,7 +188,7 @@ examples:
name: "Prime Minister's Office,<br>10 Downing Street"
url: '/government/organisations/prime-ministers-office-10-downing-street'
brand: 'prime-ministers-office-10-downing-street'
crest: 'no10'
crest: 'eo'
inverse: true
context:
dark_background: true
6 changes: 6 additions & 0 deletions spec/components/organisation_logo_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,10 @@ def component_name
render_component(organisation: { name: "Name", url: "/some-link" }, inverse: true)
assert_select ".gem-c-organisation-logo.gem-c-organisation-logo--inverse"
end

it "does not add the --inverse modifier when the inverse option is omitted" do
render_component(organisation: { name: "Name", url: "/some-link" })
assert_select ".gem-c-organisation-logo.gem-c-organisation-logo"
assert_select ".gem-c-organisation-logo.gem-c-organisation-logo--inverse", false
end
end

0 comments on commit b1e4282

Please sign in to comment.