Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Commit

Permalink
fix(Icon): renamed inactive to disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
TheComputerM committed Aug 22, 2020
1 parent ebf10ac commit cc00056
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/api-generator/src/Icon.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"visibility": "public",
"description": null,
"keywords": [],
"name": "inactive",
"name": "disabled",
"kind": "let",
"static": false,
"readonly": false,
Expand Down
3 changes: 2 additions & 1 deletion packages/svelte-materialify/src/components/Icon/Icon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
vertical-align: middle;
user-select: none;
direction: ltr;
transition: 0.3s cubic-bezier(0.25, 0.8, 0.5, 1), visibility 0s;

&.inactive {
&.disabled {
color: var(--theme-icons-inactive);
}
}
Expand Down
4 changes: 2 additions & 2 deletions packages/svelte-materialify/src/components/Icon/Icon.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script>
let classes = '';
export let inactive = false;
export let disabled = false;
export let size = '24px';
export let path = null;
export let title = null;
Expand All @@ -18,7 +18,7 @@
style="font-size: {size};transform: rotate({rotate});{style}"
class="s-icon {classes}"
{title}
class:inactive>
class:disabled>
{#if path}
<svg
xmlns="http://www.w3.org/2000/svg"
Expand Down

0 comments on commit cc00056

Please sign in to comment.