mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-16 21:06:35 +08:00
* feat(alert): initialize component * feat(alert): add children prop * feat(alert): add className prop * feat(alert): add variant prop * feat(alert): add close button and handle onDismiss click * feat(alert): place all alert related css in alert.css * feat: define state color variables and use them instead of bootstrap ones * chore: remove unused classes * feat: replace base alert styles with tailwind classes * feat: extract close button to separate component * chore: remove unused css * test: add close button tests * refactor: use more tailwind-like approach for adding colors to theme * refactor: use more expressive prop name for close button label * refactor: use semantic color names * feat: add stories with/without close button * chore: add missing variants |
||
|---|---|---|
| .. | ||
| alert | ||
| assets | ||
| close-button | ||
| button.css | ||
| button.stories.tsx | ||
| button.test.tsx | ||
| button.tsx | ||
| button.types.ts | ||
| color-system.js | ||
| color-system.stories.js | ||
| colors.css | ||
| global.css | ||
| index.ts | ||
| introduction.stories.mdx | ||