saadeghi / daisyui

๐ŸŒผ ๐ŸŒผ ๐ŸŒผ ๐ŸŒผ ๐ŸŒผ โ€ƒThe most popular, free and open-source Tailwind CSS component library
https://daisyui.com
MIT License
34.13k stars 1.3k forks source link

bug: kbd wrong theme color inside alert #3228

Closed tmac12 closed 1 month ago

tmac12 commented 1 month ago

What version of daisyUI are you using?

4.12.12

Which browsers are you seeing the problem on?

Chrome

Reproduction URL

https://tmac12.github.io/angular-daisyui-themeCharger/

Describe your issue

Problem

When using the kbd inside a div with the class alert, the behavior and appearance of the kbd component are inconsistent with how a button behaves in the same context.

This is the code:

<div role="alert" class="alert shadow-lg alert-error">
  <button class="btn btn-sm">Hello</button>
  <kbd class="kbd">123</kbd>
</div>

Expected Behavior

The kbd component should behave consistently in terms of styling and alignment with other components like button when placed inside a div with the alert class.

github-actions[bot] commented 1 month ago

Thank you @tmac12 for reporting issues. It helps daisyUI a lot ๐Ÿ’š
I'll be working on issues one by one. I will help with this one as soon as a I find a solution.
In the meantime providing more details and reproduction links would be helpful.