a11y: admin/options: sections title were not read by VO

Massimo Melina committed Mar 24, 2025 at 13:00 UTC dedf3d808fcc54c6f67436e36ab2c19c7659ae8f
1 file changed +3 -2
admin/src/OptionsPage.ts
+3 -2
@@ -12,7 +12,7 @@ import {
12 Dict, md, with_, try_, ipForUrl,
13 } from './misc'
14 import {
15 - iconTooltip, InLink, LinkBtn, propsForModifiedValues, wikiLink, useBreakpoint, NetmaskField, WildcardsSupported, Flex
15 + iconTooltip, InLink, LinkBtn, propsForModifiedValues, wikiLink, useBreakpoint, NetmaskField, WildcardsSupported,
16 } from './mui'
17 import { Form, BoolField, NumberField, SelectField, FieldProps, Field, StringField } from '@hfs/mui-grid-form';
18 import { ArrayField } from './ArrayField'
@@ -306,7 +306,8 @@ export default function OptionsPage() {
306 }
307
308 function Section({ title, subtitle }: { title: string, subtitle?: string }) {
309 - return h(Divider, {}, h('h3', { style: { margin: 0 } }, title), h(Box, { fontSize: 'small' }, subtitle))
309 + return h(Divider, { role: 'heading', sx: { fontSize: 'larger', fontWeight: 'bold' } }, title,
310 + h(Box, { fontSize: 'small', fontWeight: 'normal' }, subtitle))
311 }
312
313 function recalculateChanges() {