HCI and accessibility
Introducido
6:03
Ingeniería de software
Software engineering is how systems outlive their authors. The first three units shape the product: requirements, architecture and interface design. The next…
Narración en inglés · subtítulos en inglés y 中文 que puedes cambiar
En esta lección
| English | Significado |
|---|---|
| states/steɪts/ | estados |
| transitions/trænˈsɪʃnz/ | moves from one state to another in a state machine or user interface |
| Accessibility/ækˌsesəˈbɪlɪti/ | making software usable by people with disabilities |
| contrast/ˈkɒntræst/ | the difference in brightness between text and its background |
| Fitts's law/ˈfɪtsɪz lɔː/ | the time to reach a target grows with its distance and shrinks with its size |
| Heuristic evaluation/hjuːˈrɪstɪk ɪˌvæljuːˈeɪʃn/ | Three to five reviewers each walk through the flow with a short checklist (show the status, use the user's words, allow undo, be consistent, prevent errors), then they combine their findings. |
| severity/səˈverɪti/ | how serious a usability problem is for users |
Diseño en estados
- El flujo de préstamo tiene cinco estados (navegación, detalle, confirmación, completado, error) y transiciones etiquetadas. Cada estado alcanzable necesita una vía visible de salida; el estado de error mantiene la entrada del miembro y retorna al detalle.


Every reachable interface state needs —
Dificultad 1/5 · 100 monedas + un pequeño bono en el primer intento de hoy
No exit = a trap; the error state returns to detail with input kept.
Accesibilidad como mecánica
- Lo fundamental de WCAG: perceptible (contraste $\ge 4.5{:}1$ para texto), operable (acceso por teclado, foco visible), comprensible (etiquetas, no marcadores de posición), robusto (semántica).
- El prototipo del curso midió: el texto del cuerpo 7:1 pasa; el botón gris deshabilitado en 2.9:1 falla — reemplazado por 4.6:1 con un acento visual subrayado. La accesibilidad es medible o es decoración.
Text contrast must be at least —
Dificultad 1/5 · 100 monedas + un pequeño bono en el primer intento de hoy
WCAG AA: 4.5:1 for body text; 7:1 comfortably passes.
A grey button label with contrast $2.9{:}1$ meets WCAG's text contrast rule.
Dificultad 1/5 · 100 monedas + un pequeño bono en el primer intento de hoy
Normal text needs at least $4.5{:}1$. The prototype replaced it with a $4.6{:}1$ colour and an underline, so the affordance does not rely on colour alone.
El camino del teclado
- Un miembro completa un préstamo solo con tab y enter: el orden del foco coincide con el orden visual, el foco es visible en cada control, la confirmación se anuncia. Los menús solo al pasar el cursor fallan este camino; la prueba los detecta antes que los usuarios.
- Los estados de error que descartan la entrada y los marcadores de posición como etiquetas son los defectos recurrentes.
The keyboard path fails when —
Dificultad 1/5 · 100 monedas + un pequeño bono en el primer intento de hoy
Hover-only affordances are unreachable by tab.
Esta tarjeta es nueva, por eso aparece en inglés hasta que su traducción esté lista.
Testing with users, and Fitts's law
- A small test finds most problems. If one user meets a given problem with probability $0.31$, five users find $1 - 0.69^5 \approx 84\%$ of them. Several small rounds beat one big one, because each fix uncovers the next problem.
- Fitts's law 菲茨定律 prices pointing: the time grows with $\log_2(D/W + 1)$ for distance $D$ and target width $W$. A $16$ px button $512$ px away scores $\log_2 33 \approx 5.0$ bits; doubling its width cuts that to $\log_2 17 \approx 4.1$. Big, near targets are fast targets.
Each user finds a given problem with probability 0.31. What percentage of problems do 3 users find? (Answer to the nearest whole number.)
Dificultad 2/5 · 140 monedas + un pequeño bono en el primer intento de hoy
1 - 0.69^3 = 1 - 0.329 = 0.671, about 67%.
A target is 1 px wide and 255 px away. What is its Fitts index of difficulty, log2(D/W + 1), in bits?
Dificultad 2/5 · 140 monedas + un pequeño bono en el primer intento de hoy
log2(255 + 1) = log2 256 = 8 bits.
Esta tarjeta es nueva, por eso aparece en inglés hasta que su traducción esté lista.
Expert review before users
- Heuristic evaluation 启发式评估: three to five reviewers each walk through the flow with a short checklist (show the status, use the user's words, allow undo, be consistent, prevent errors), then they combine their findings.
- Each problem gets a severity 严重程度 from 0 (not a problem) to 4 (blocks the task). Fix the 4s before testing with users, so that users can find what experts cannot.
In heuristic evaluation, a severity-4 problem can wait until after user testing.
Dificultad 1/5 · 100 monedas + un pequeño bono en el primer intento de hoy
Severity 4 blocks the task; fix it first so testing finds new problems.
Esta tarjeta es nueva, por eso aparece en inglés hasta que su traducción esté lista.
Worked example: computing a contrast ratio
- WCAG contrast 对比度 is $(L_1 + 0.05)/(L_2 + 0.05)$, using relative luminances with the lighter colour on top. White ($L = 1$) on a grey with $L = 0.18$ gives $1.05/0.23 = \mathbf{4.57}$: just above the 4.5 needed for body text.
- A slightly lighter grey, $L = 0.20$, sits closer to white: $1.05/0.25 = 4.2$, which fails. Black on white is the maximum, $1.05/0.05 = 21$.
White text ($L = 1$) on a background of $L = 0.20$: contrast ratio (one decimal)?
Dificultad 2/5 · 140 monedas + un pequeño bono en el primer intento de hoy
$1.05/0.25 = 4.2$.
Contrast ratio of black on white?
Dificultad 2/5 · 140 monedas + un pequeño bono en el primer intento de hoy
$(1 + 0.05)/(0 + 0.05) = 21$.
Esta tarjeta es nueva, por eso aparece en inglés hasta que su traducción esté lista.
Worked example: review the borrow form
- (Fictional) An expert review of the first borrow form found four problems. Give each a severity 严重程度 (0 to 4) and a fix.
| Severity: problem | Fix |
|---|---|
| 3: a field labelled only by a placeholder | a visible label above it |
| 4: an error clears the whole form | keep the input; point at the field |
| 4: "Borrow" opens only on mouse hover | a real button that Tab and Enter reach |
| 2: due date shown in red only | add the words "Due today" |
- Fix the two 4s first: each one stops some members from borrowing at all. Then test with five users.
Esta tarjeta es nueva, por eso aparece en inglés hasta que su traducción esté lista.
Marks that slip away
- Placeholder as label. It disappears as soon as the user types.
- Errors that throw input away. Keep what the user entered and point at the field to fix.
- Meaning by colour alone. The $2.9{:}1$ grey button failed; add text or an underline.
Esta tarjeta es nueva, por eso aparece en inglés hasta que su traducción esté lista.
Recap
- Design in states, and give every reachable state a visible way out.
- WCAG: text contrast at least $4.5{:}1$; everything reachable by keyboard; labels, not placeholders.
- Measure accessibility 无障碍: $2.9{:}1$ fails, $4.6{:}1$ passes.
¿Qué salió mal? Solo el equipo del sitio ve esta información.