Skip to content

Commit

Permalink
fix(loader): Do not modify display when inline (#6013)
Browse files Browse the repository at this point in the history
**Related Issue:** #5900

## Summary

fix(loader): Do not modify display when inline. #5900

Co-authored-by: Ali Stump <alisonailea@users.noreply.github.com>
  • Loading branch information
driskull and alisonailea committed Dec 13, 2022
1 parent 69107e3 commit 2d91c89
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions src/components/loader/loader.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { renders, hidden } from "../../tests/commonTests";
describe("calcite-loader", () => {
it("renders", async () => {
await renders(`<calcite-loader></calcite-loader>`, { display: "flex", visible: true });
await renders(`<calcite-loader inline></calcite-loader>`, { display: "flex", visible: true });
});

it("honors hidden attribute", async () => hidden("calcite-loader"));
Expand Down
4 changes: 0 additions & 4 deletions src/components/loader/loader.scss
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,6 @@ $loader-circumference: ($loader-scale - (2 * $stroke-width)) * 3.14159;
vertical-align: calc(var(--calcite-loader-size-inline) * -1 * 0.2);
}

:host([inline]) {
@apply inline-block;
}

:host([inline]) .loader__svgs {
@apply top-0 m-0;
inset-inline-start: 0;
Expand Down

0 comments on commit 2d91c89

Please sign in to comment.