Commit 633dd44
authored
Merge pull request #87 from OpenDyslexic/rebuild
Icon font protection: Font override selectors now use :not(:where(...)) to explicitly exclude icon font elements — Font Awesome (fa-, fas, far, fab, fal, fad), Material Icons/Symbols, Glyphicons, Bootstrap Icons (bi-), Phosphor (ph-), Tabler (ti-), Remix (ri-), and IcoMoon. This prevents OpenDyslexic from breaking icon fonts on websites.
Font & CSS overhaul: Split @font-face declarations into separate families (Regular, Italic, Bold, Bold Italic) with font-display: swap, explicit numeric weights, and Arial, sans-serif fallback stacks.
Added CSS variables (--opendyslexic-regular, --opendyslexic-line-height, etc.) for consistency.
Added helper classes for each font variant (opendyslexic-font-regular, -italic, -bold).
Popup UI accessibility: Refactored app.vue with ARIA roles, rel="noopener" on external links, improved list/button semantics. Simplified index.html with proper lang, charset, viewport, and data-theme.
New adverts.js module: Centralized promotional link management.
Jest test suite: Added Babel/Jest config, Chrome API mocks, and 5 test files covering background scripts, content scripts (badge, engine, utils), and adverts.
CSS formatting: Standardized indentation to tabs, normalized quote styles across all stylesheets.
We added unicode-range to all 8 @font-face declarations across app.css and core/opendyslexic.css to scope OpenDyslexic to its actual glyph coverage (Latin, Vietnamese, punctuation, math operators, Euro/trademark, and fi/fl ligatures), so the browser falls back to system fonts for unsupported characters instead of rendering blanks.File tree
30 files changed
+10601
-5526
lines changed- app
- assets
- images
- styles
- core
- scripts
- background
- content
- config
- tests
- __mocks__
- background
- content
30 files changed
+10601
-5526
lines changedBinary file not shown.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
| 14 | + | |
11 | 15 | | |
12 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
13 | 19 | | |
14 | 20 | | |
15 | 21 | | |
16 | 22 | | |
17 | 23 | | |
18 | | - | |
| 24 | + | |
| 25 | + | |
19 | 26 | | |
| 27 | + | |
| 28 | + | |
20 | 29 | | |
21 | 30 | | |
22 | 31 | | |
23 | 32 | | |
24 | 33 | | |
25 | | - | |
| 34 | + | |
| 35 | + | |
26 | 36 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 37 | + | |
| 38 | + | |
34 | 39 | | |
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
38 | 43 | | |
39 | 44 | | |
40 | | - | |
| 45 | + | |
41 | 46 | | |
42 | 47 | | |
43 | 48 | | |
| |||
0 commit comments