feat: add a close button to dialog
The close affordance reuses Button (ghost, small) at the panel's top right and routes through on_change like escape and scrim clicks; it is hidden in alert mode. The dialog feature now depends on button, and AGENTS.md codifies preferring existing components over custom elements.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
# Coding guidelines
|
||||
|
||||
- Prefer existing components (e.g. build a close affordance out of `Button`) over custom elements; build a custom element only when no existing component fits.
|
||||
- Prioritize code correctness and clarity. Speed and efficiency are secondary priorities unless otherwise specified.
|
||||
- Do not write organizational or comments that summarize the code. Comments should only be written to explain "why" the code is written in some way in the case there is a reason that is tricky / non-obvious.
|
||||
- Keep doc comments and comments simple, one line, straightforward, and unbloated.
|
||||
|
||||
Reference in New Issue
Block a user