Name | Hex |
---|---|
white | #ffffff |
light-grey | #f4f6f7 |
grey | #d6dde2 |
dark-grey | #5c6c7c |
import { Component, Event, EventEmitter, Prop, State } from '@stencil/core'; | |
import { getActionFromKey, getUpdatedIndex, MenuActions, uniqueId } from '../../shared/utils'; | |
interface SelectOption { | |
name: string; | |
value: string; | |
} | |
@Component({ | |
tag: 'combo-readonly', |
function observeElement(element) { | |
const config = { attributes: true, childList: true, subtree: true }; | |
const callback = function(mutationsList, observer) { | |
for(let mutation of mutationsList) { | |
if (mutation.type === 'childList') { | |
const additions = mutation.addedNodes; | |
const removals = mutation.removedNodes; | |
if (removals.length) { | |
console.log('Child nodes were removed:', ...removals); | |
} |
Accessibility review checklist, with detailed steps below. Skip any tests or sub-tests that you do not feel comfortable evaluating, and either pair with or hand off the issue to an accessibility SME for any remaining items.
Note: these checks are geared towards catching component-level accessibility issues. They are not comprehensive, and this is not the correct checklist for evaluating page- or app-level accessibility.
- Color contrast: the text meets required contrast, and all states (e.g. selected, focus, etc) meet 3:1 contrast
- High contrast mode: the control is understandable in high contrast mode in all states
- Zoom and reflow: the control is still visible and functional when zoomed in
- Pointer access: hover states are not required to understand or operate the control
This is a both an explainer for why a secondary actions proposal is needed, and a draft of the proposed change to the ARIA spec.
Original issue: w3c/aria#1440
Jump straight to the Proposal
Quick test: resize your browser or application window between a rough estimate of portrait and landscape aspect ratios, and verify that everything looks OK and works correctly in both.
Full test: open the website or app in a tablet, and rotate the tablet.