Skip to content
Draft
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions .Jules/palette.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2024-05-22 - Maud Conditional Attributes
**Learning:** `maud` templates in this codebase require the `attr=[Option]` syntax for conditional attributes like `aria-current`. Standard `if` blocks cannot be used inside attribute lists.
**Action:** Use `attr=[condition.then(|| "value")]` for all conditional ARIA attributes.

## 2024-05-23 - Initial ARIA states
**Learning:** Initializing ARIA attributes like `aria-pressed` or `aria-current` via client-side JavaScript (`DOMContentLoaded`) causes a Flash of Unstyled Content (FOUC) and can lead screen readers to announce incorrect initial states before the script executes.
**Action:** Always render initial ARIA states directly on the server (e.g., using `maud` server-side rendering) to ensure immediate accessibility and correct visual state upon page load.
Comment on lines +4 to +7
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick | πŸ”΅ Trivial

Minor markdown formatting issue.

The static analysis tool flagged a missing blank line before the heading on line 5 (MD022). This is a minor formatting nit.

πŸ“ Proposed fix
 **Action:** Use `attr=[condition.then(|| "value")]` for all conditional ARIA attributes.
+
 ## 2024-05-23 - Initial ARIA states
 **Learning:** Initializing ARIA attributes like `aria-pressed` or `aria-current` via client-side JavaScript (`DOMContentLoaded`) causes a Flash of Unstyled Content (FOUC) and can lead screen readers to announce incorrect initial states before the script executes.
 **Action:** Always render initial ARIA states directly on the server (e.g., using `maud` server-side rendering) to ensure immediate accessibility and correct visual state upon page load.
🧰 Tools
πŸͺ› LanguageTool

[typographical] ~5-~5: To join two clauses or introduce examples, consider using an em dash.
Context: ...ditional ARIA attributes. ## 2024-05-23 - Initial ARIA states Learning: Initia...

(DASH_RULE)

πŸͺ› markdownlint-cli2 (0.21.0)

[warning] 5-5: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below

(MD022, blanks-around-headings)

πŸ€– Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.Jules/palette.md around lines 4 - 7, The markdown linter flagged MD022
(missing blank line before heading); add a single blank line immediately before
the "## 2024-05-23 - Initial ARIA states" heading in .Jules/palette.md so the
heading is separated from the preceding content; confirm the blank line precedes
that exact heading text to satisfy the linter.

Loading
Loading