@autobusal/routes-search 1.4.1 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/styles.ts +17 -1
package/package.json
CHANGED
package/styles.ts
CHANGED
|
@@ -52,7 +52,23 @@ export const Item = styled.div`
|
|
|
52
52
|
flex: 1;
|
|
53
53
|
`;
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
/*
|
|
56
|
+
* Edited: Claude - Date: 2026-09-16
|
|
57
|
+
*
|
|
58
|
+
* NOT A HEADING. These are the captions over the search fields - "From",
|
|
59
|
+
* "To", "Departure Date", "Passengers" - and they were <h4>s, which told a
|
|
60
|
+
* screen reader the form contained four headings and told PageSpeed the
|
|
61
|
+
* document skips from <h1> to <h4> ("Heading elements are not in a
|
|
62
|
+
* sequentially-descending order", reported on production today). A caption
|
|
63
|
+
* that labels the control under it is not a section title; the fields'
|
|
64
|
+
* accessible names come from the controls themselves.
|
|
65
|
+
*
|
|
66
|
+
* A div rather than a <label>, deliberately: the controls beneath are
|
|
67
|
+
* composite widgets (Autocomplete, Calendar, the passenger picker) that own
|
|
68
|
+
* their own labelling, and a <label> pointing at a wrapper would announce
|
|
69
|
+
* the caption twice. Styling is unchanged.
|
|
70
|
+
*/
|
|
71
|
+
export const Title = styled.div`
|
|
56
72
|
margin-bottom: 8px;
|
|
57
73
|
font-size: ${ props => props.theme.size.s };
|
|
58
74
|
`;
|