Skip to content

feat(mint): add logical properties analysis step to CSS audit prompt - #106

Draft
nujovich wants to merge 4 commits into
mainfrom
hermes/build/mint-stylelint-layout-mappings-logical-properties
Draft

feat(mint): add logical properties analysis step to CSS audit prompt#106
nujovich wants to merge 4 commits into
mainfrom
hermes/build/mint-stylelint-layout-mappings-logical-properties

Conversation

@nujovich

@nujovich nujovich commented Aug 2, 2026

Copy link
Copy Markdown
Owner

Card: https://github.com/nujovich/mint-radar/issues/10

What: Adds STEP 14 (Logical Properties Analysis) to the CSS audit prompt in lib/prompts.mjs. This step scans CSS for physical directional properties (margin-left, padding-right, border-top, left, width, text-align: right, etc.) and suggests their modern flow-relative (logical) equivalents. It also computes a logical-vs-physical ratio to quantify the stylesheet's i18n readiness.

Why: Stylelint 17.10 added layout-mappings rules that enforce logical properties. Mint's CSS audit should detect physical properties and guide users toward logical equivalents for automatic RTL/LTR and writing-mode support, closing the gap between Mint and Stylelint's coverage.

Milestones

  • Milestone 1 -- Add STEP 14 to audit prompt in lib/prompts.mjs: detect physical directional properties (30+ mappings), suggest logical equivalents (e.g. margin-left -> margin-inline-start), compute logical-vs-physical ratio. Add LogicalPropertiesIssue / LogicalPropertiesAudit types to lib/types.ts and logicalProperties field to AuditReport.
  • Milestone 2 -- Wire logicalProperties results in playground UI (AuditView component)
  • Milestone 3 -- Wire logicalProperties in audit-summary.mjs (CLI summary line)
  • Milestone 4 -- Add test fixture with mixed logical/physical properties and tests in lib/tests/

How to test:

npm test

@nujovich

nujovich commented Aug 6, 2026

Copy link
Copy Markdown
Owner Author

All milestones complete. Ready for review when you are.

1 similar comment
@nujovich

nujovich commented Aug 8, 2026

Copy link
Copy Markdown
Owner Author

All milestones complete. Ready for review when you are.

@nujovich

nujovich commented Aug 9, 2026

Copy link
Copy Markdown
Owner Author

BUILD 2026-08-09: All milestones complete. Ready for review when you are.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant