gitoria

jukebox

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit9bcbb0179bcbb017Records: day38b waits for day39 fixmre9bcbb017/components/icons/README.md

1.0 KB

  1. # Icons
  2. One source of the inline icons every component uses: `components/icons/icons.hl`.
  3. ```
  4. import Icon from '../icons/icons.hl'
  5. …
  6. button { type = "button" title = "Link (Ctrl+K)" 'aria-label' = "Link (Ctrl+K)" Icon { name = "link" } }
  7. ```
  8. - `Icon { name = "link" }` is an inline `<svg>` (24 x 24 box, `stroke = currentColor`, `aria-hidden`): it takes the text colour of its button. The button carries `title` and `aria-label`, the icon never speaks.
  9. - `size = "1.5em"` changes the size (default `1.25em`).
  10. - Names: `bold italic code link heading ul ol block undo redo file close`. A new icon is one more path in `shapes`.
  11. - Shipped once per app: a component that needs icons imports the file by path; Hybriel serves an imported file as one module however many components import it (the page names `components/icons/icons.hl` once). An app copies `icons/icons.hl` next to the other components (tools/sync-components.sh).
  12. - Each `Icon` on a page adds about 0.4 KB to the page's seed (its state), 11 per Markdown editor.

Branches

Latest commits

  • 9bcbb017Records: day38b waits for day39 fixmre
  • f80504e1Records: day38b repro sentmre
  • 8048258bRecords: day38b jb3 regression, L1 Chromes stoppedmre
  • 68aace7fRecords: mission 003 day38bmre
  • d105d8a9Records: mpackdb integrity check cleanmre
  • 6e980c53Records: mpackdb rule refinementmre
  • 6d335ac4Records: storage copy rulingmre
  • 7eb2898dRecords: mpackdb second-opener rule until day38mre
  • b011f98eRecords: style form live on day35mre
  • 60d90cb2Records: L1 woken for the restartmre
  • 75ae544fRecords: restart waits for the connection to closemre
  • e0b75951Records: L1 merged and pushed, restart waits for an open connectionmre
  • f2b5db98styles: format styles with nested rules and bare queriesmre
  • f036bab4search: format styles with nested rules and bare queriesmre
  • ef9a9d4asongs: format styles with nested rules and bare queriesmre
  • f22f9aacmain: format styles with nested rules and bare queriesmre
  • f56cd7c7Sync icons from 8176eb1 and verify mixed component sourcesmre
  • d56e5054Sync theme and shared tokens from layouts 17e0f03mre
  • b1362547Re-vendor to Hybriel set day35mre
  • 89e10f08Records: mission 002 rollback wordingmre