Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: RTL for icon #137

Merged
merged 2 commits into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ Can be specified by color name, hexadecimal, rgb, rgba, hsl, hsla, basically any
| `restriction-success-lock-color` | `primary-color` | Lock color when unlocked |
| `restriction-blocked-lock-color` | `error-state-color` | Lock color when card is blocked |
| `restriction-invalid--color` | `error-state-color` | Lock color after an invalid attempt to unlock |
| `restriction-lock-margin-left` | `0px` | Manually bump the left margin of the lock icon |
| `restriction-lock-row-margin-left` | `24px` | Manually bump the left margin of the lock icon in a row |
| `restriction-lock-margin-left` | `0px` | Manually bump the left margin of the lock icon (right for RTL) |
| `restriction-lock-row-margin-left` | `24px` | Manually bump the left margin of the lock icon in a row (right for RTL) |
| `restriction-lock-row-margin-top` | `0px` | Manually bump the top margin of the lock icon in a row |
| `restriction-lock-icon-size` | `24px` | Lock icon size |
| `restriction-lock-opacity` | `0.5` | Lock icon opacity |
Expand Down
4 changes: 2 additions & 2 deletions src/restriction-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,11 +326,11 @@ class RestrictionCard extends LitElement implements LovelaceCard {
color: var(--blocked-lock-color) !important;
}
#lock {
margin-left: var(--lock-margin-left);
margin-inline-start: var(--lock-margin-left);
opacity: var(--lock-opacity);
}
.row {
margin-left: var(--lock-row-margin-left) !important;
margin-inline-start: var(--lock-row-margin-left) !important;
margin-top: var(--lock-row-margin-top) !important;
}
.hidden {
Expand Down
Loading