Skip to content

A platform for community discussion. Free, open, simple.

DEV: update single dash animation modifier to double dash (#40452)

Krise84ecc969971
diff --git a/app/assets/stylesheets/admin/admin-dashboard-skeleton.scss b/app/assets/stylesheets/admin/admin-dashboard-skeleton.scss
index eb78ffa9c44..ae50d14f3a3 100644
--- a/app/assets/stylesheets/admin/admin-dashboard-skeleton.scss
+++ b/app/assets/stylesheets/admin/admin-dashboard-skeleton.scss
@@ -270,7 +270,7 @@
overflow: hidden;
}
- &.-animation {
+ &.--animation {
*[class*="db-skeleton__"]:not(
.db-skeleton__section,
.db-skeleton__section-wrapper,
diff --git a/frontend/discourse/admin/components/dashboard/skeleton.gjs b/frontend/discourse/admin/components/dashboard/skeleton.gjs
index 33053214fde..9f91aeb2de5 100644
--- a/frontend/discourse/admin/components/dashboard/skeleton.gjs
+++ b/frontend/discourse/admin/components/dashboard/skeleton.gjs
@@ -8,7 +8,7 @@ const ENGAGEMENT_ACTIVITY_ROWS = Array.from({ length: 4 });
<template>
<div
- class="db-skeleton -animation"
+ class="db-skeleton --animation"
role="status"
aria-label={{i18n "admin.dashboard.loading"}}
>
diff --git a/frontend/discourse/tests/integration/components/dashboard/skeleton-test.gjs b/frontend/discourse/tests/integration/components/dashboard/skeleton-test.gjs
index 2d6a0b231f0..9dc3d6112dc 100644
--- a/frontend/discourse/tests/integration/components/dashboard/skeleton-test.gjs
+++ b/frontend/discourse/tests/integration/components/dashboard/skeleton-test.gjs
@@ -35,6 +35,6 @@ module("Integration | Component | Dashboard | Skeleton", function (hooks) {
test("opts into the shimmer animation", async function (assert) {
await render(<template><DashboardSkeleton /></template>);
- assert.dom(".db-skeleton").hasClass("-animation");
+ assert.dom(".db-skeleton").hasClass("--animation");
});
});
diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-skeleton.gjs b/plugins/chat/assets/javascripts/discourse/components/chat-skeleton.gjs
index 7fa3f6ccf73..3368b37dad2 100644
--- a/plugins/chat/assets/javascripts/discourse/components/chat-skeleton.gjs
+++ b/plugins/chat/assets/javascripts/discourse/components/chat-skeleton.gjs
@@ -19,7 +19,7 @@ export default class ChatSkeleton extends Component {
}
<template>
- <div class="chat-skeleton -animation">
+ <div class="chat-skeleton --animation">
{{#each this.placeholders as |placeholder|}}
<div class="chat-skeleton__body">
<div class="chat-skeleton__message">
diff --git a/plugins/chat/assets/stylesheets/common/chat-skeleton.scss b/plugins/chat/assets/stylesheets/common/chat-skeleton.scss
index 96c1a16177f..66091dbd3ef 100644
--- a/plugins/chat/assets/stylesheets/common/chat-skeleton.scss
+++ b/plugins/chat/assets/stylesheets/common/chat-skeleton.scss
@@ -107,7 +107,7 @@
overflow: hidden;
}
- &.-animation {
+ &.--animation {
position: relative;
overflow: hidden;