You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Add the "label" for the checkbox which will get filled.
395
-
ifsoup.new_tagisNone:
396
-
continue
397
-
398
-
section_name=element.a.get_text()
399
-
label=soup.new_tag(
397
+
# Create chevron icon and append to <summary>
398
+
span=soup.new_tag(
400
399
"span",
401
400
attrs={
402
-
# "role": "button",
403
-
# "for": checkbox_name,
404
401
"class": "toctree-toggle",
405
-
# "tabindex": "0",
406
-
"aria-expanded": "false",
407
-
"aria-controls": subtree_name,
408
-
"aria-label": f"Expand section {section_name}",
402
+
"role": "presentation", # This element and the chevron it contains are purely decorative; the actual expand/collapse functionality is delegated to the <summary> tag
0 commit comments