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(Alert): improve visiblity for some alerts #214

Merged
merged 1 commit into from
Jun 19, 2024
Merged
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
15 changes: 14 additions & 1 deletion src/components/alerts/Alert.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { default as RuiButton } from '@/components/buttons/button/Button.vue';

Check warning on line 2 in src/components/alerts/Alert.vue

View workflow job for this annotation

GitHub Actions / ci

Use default import syntax to import 'RuiButton'

Check warning on line 2 in src/components/alerts/Alert.vue

View workflow job for this annotation

GitHub Actions / ci

Use default import syntax to import 'RuiButton'
import { default as RuiIcon } from '@/components/icons/Icon.vue';

Check warning on line 3 in src/components/alerts/Alert.vue

View workflow job for this annotation

GitHub Actions / ci

Use default import syntax to import 'RuiIcon'

Check warning on line 3 in src/components/alerts/Alert.vue

View workflow job for this annotation

GitHub Actions / ci

Use default import syntax to import 'RuiIcon'
import type { ContextColorsType } from '@/consts/colors';
import type { RuiIcons } from '~/src';

Expand Down Expand Up @@ -152,6 +152,19 @@
}
}
}

@if index((warning, success, info), $color) {
&.#{$color} {
&.filled {
.icon,
.texts,
.action,
.close {
@apply text-rui-light-text #{!important};
}
}
}
}
}

&.outlined {
Expand Down Expand Up @@ -196,7 +209,7 @@
.texts,
.action,
.close {
@apply text-white #{!important};
@apply text-rui-dark-text #{!important};
}
}

Expand Down
Loading