-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: globally fix text color of buttons in alerts (#3323)
Fixes text color of all primary buttons within alerts. See Kong/kongponents@84a4e9f I previously "fixed" this in #3317 just for our upgrade button, thinking this was the only instance This PR undoes that ^ PR and fixes it globally instead, which will fix the issue for all instances whether I remember about them or not. ### Before <img width="816" alt="Screenshot 2024-12-19 at 11 22 19" src="https://github.com/user-attachments/assets/a0341a9d-a2bc-47cc-b856-366f27d119ea" /> ### After <img width="813" alt="Screenshot 2024-12-19 at 11 08 31" src="https://github.com/user-attachments/assets/472eff96-54b2-4573-bcd9-1ece0a7eb31e" /> --------- Signed-off-by: John Cowen <[email protected]>
- Loading branch information
Showing
11 changed files
with
46 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,7 +82,7 @@ | |
v-else | ||
> | ||
<XAlert | ||
appearance="danger" | ||
variant="danger" | ||
> | ||
<div | ||
class="error-block-message" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# x-about-card |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# x-alert |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<template> | ||
<KAlert | ||
:appearance="props.variant" | ||
:dismissible="typeof attrs.onDismiss === 'function'" | ||
> | ||
<template | ||
v-for="(_, key) in slots" | ||
:key="key" | ||
#[`${key}`] | ||
> | ||
<slot :name="key" /> | ||
</template> | ||
</KAlert> | ||
</template> | ||
<script lang="ts" setup> | ||
import { KAlert } from '@kong/kongponents' | ||
import { useSlots, useAttrs } from 'vue' | ||
import type { AlertAppearance } from '@kong/kongponents' | ||
const slots = useSlots() | ||
const attrs = useAttrs() | ||
const props = withDefaults(defineProps<{ | ||
variant?: AlertAppearance | ||
}>(), { | ||
variant: 'warning', | ||
}) | ||
</script> | ||
<style lang="scss" scoped> | ||
:deep(.k-button.primary) { | ||
color: $kui-color-text-inverse !important; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters