Skip to content

Commit 494f12e

Browse files
committed
Convert .load-more to global CSS class
This prepares for the migration to ember-scoped-css, which does not support `composes`.
1 parent d16b09f commit 494f12e

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

app/styles/crate/versions.module.css

-3
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@
3636
.load-more {
3737
--shadow: 0 1px 3px light-dark(hsla(51, 90%, 42%, .35), #232321);
3838

39-
/* TODO: move to shared */
40-
composes: load-more from '../../styles/dashboard.module.css';
41-
4239
border: 0;
4340
padding: 0 var(--space-m);
4441

app/styles/dashboard.module.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
text-align: right;
116116
}
117117

118-
.load-more {
118+
:global(.load-more) {
119119
padding: var(--space-s);
120120
border-top: 1px solid light-dark(hsla(51, 90%, 42%, .25), #232321);
121121

app/templates/crate/versions.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
{{/each}}
2828
</ul>
2929
{{#if (or this.loadMoreTask.isRunning this.next_page)}}
30-
<div local-class="load-more">
30+
<div local-class="load-more" class="load-more">
3131
<button
3232
type="button"
3333
data-test-id={{if this.loadMoreTask.isRunning "loading" "load-more"}}

app/templates/dashboard.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
</ul>
6161

6262
{{#if this.hasMore}}
63-
<div local-class="load-more">
63+
<div class="load-more">
6464
<button type="button" disabled={{this.loadMoreTask.isRunning}} {{on "click" (perform this.loadMoreTask)}}>
6565
Load More
6666
{{#if this.loadMoreTask.isRunning}}

0 commit comments

Comments
 (0)