Skip to content

Commit d7c5662

Browse files
committed
Convert .link to global CSS class
This prepares for the migration to ember-scoped-css, which does not support `composes`.
1 parent c532181 commit d7c5662

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

app/components/front-page-list/item.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<a href={{@link.url}} local-class="link" ...attributes {{on "click" @link.transitionTo}}>
1+
<a href={{@link.url}} class="box-link" ...attributes {{on "click" @link.transitionTo}}>
22
<div local-class="left">
33
<div local-class="title">{{@title}}</div>
44
{{#if @subtitle}}<div local-class="subtitle">{{@subtitle}}</div>{{/if}}

app/components/front-page-list/item.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.link {
1+
:global(a.box-link) {
22
--shadow: 0 2px 3px light-dark(hsla(51, 50%, 44%, .35), #232321);
33

44
display: flex;

app/styles/support.module.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
}
88

99
.link {
10-
composes: link from '../components/front-page-list/item.module.css';
1110
justify-content: center;
1211
padding: var(--space-xs) var(--space-s);
1312
height: inherit;

app/templates/support.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
@query={{hash inquire=support.inquire}}
1919
data-test-id="link-{{support.inquire}}"
2020
local-class="link"
21+
class="box-link"
2122
>
2223
{{support.label}}
2324
</LinkTo>
@@ -28,6 +29,7 @@
2829
href="mailto:[email protected]"
2930
data-test-id="link-email-support"
3031
local-class="link"
32+
class="box-link"
3133
>
3234
For all other cases: <strong>[email protected]</strong>
3335
</a>

0 commit comments

Comments
 (0)