Files
anki/ts
GithubAnon0000 bfaf62d4dd fix: set webview font size to system font size in preferences menu (#5174)
## Linked issue (required)

Fixes ankitects/anki#5173

## Summary / motivation (required)

This PR removed a hard coded font size value. That way the font size
changes dynamically, which is also important for A11Y. The issue had
been initally introduced in
[https://github.com/ankitects/anki/pull/5057](<https://github.com/ankitects/anki/pull/5057>).
@Luc-Mcgrady and @focushover, pinging you FYI.

## Steps to reproduce (required, use N/A if not applicable)

1. Open preferences.
2. Go to experiments tab.
3. See that font size is different from other tabs.

## How to test (required)

Tested with `./run --safemode`, then visual check.

### Checklist (minimum)

- [X] I ran `./ninja check` or an equivalent relevant check locally.
- [ ] I added or updated tests when the change is non-trivial or
behavior changed.

### Details

It has also been successfully tested against changes in "user interface
size" preference in Anki.

## Before / after behavior (optional)

Before: inconsistent font size  <br>After: consistent font size

## Risk / compatibility / migration (optional)

None.

## UI evidence (required for visual changes; otherwise N/A)

With this PR:

<img
src="https://github.com/user-attachments/assets/cad67197-0793-4392-8b7e-a9d1f580c29b
" alt="A" width="951" data-linear-height="905" />

<img
src="https://github.com/user-attachments/assets/55144931-3b70-45c6-8616-2d0966dbe397
" alt="B" width="951" data-linear-height="905" />

## Scope

- [X] This PR is focused on one change (no unrelated edits).

---------

Co-authored-by: Luc Mcgrady <lucmcgrady@gmail.com>
2026-08-17 14:42:18 +01:00
..
2026-08-05 11:48:09 +03:00
2024-03-31 09:16:31 +01:00
2021-04-22 19:19:39 +02:00
2022-12-04 11:37:16 +10:00
2022-11-27 15:24:20 +10:00
2024-03-31 09:16:31 +01:00

Anki's TypeScript and Sass dependencies. Some TS/JS code is also stored separately in ../qt/aqt/data/web/.

To update all dependencies:

./update.sh

To add a new dev dependency, use something like:

./add.sh -D @rollup/plugin-alias