Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enkele a11y aanpassingen om de links leesbaar te houden en focusable te maken. #1

Merged
merged 8 commits into from
Jan 8, 2022

Conversation

mathieuspil
Copy link
Collaborator

No description provided.

@mathieuspil
Copy link
Collaborator Author

Ik heb nog nooit typescript geschreven, dus wees gerust kritisch :)

Copy link
Owner

@timdpaep timdpaep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bedankt voor de aanpassingen!!

@@ -109,7 +109,28 @@ export const CheckListIconButton = ({
}}
disabled={isDisabled}
>
<ButtonIcon iconButtonType={iconButtonType} />
<CheckListItemDescription
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mathieuspil De checklistitem description in de iconbutton stoppen zou ik niet doen, anders het component zijn doel voorbij (een buttonicon voor een checklist). Je zou een nieuwe component kunnen maken (bijv. CheckListItemContent, wat dan een checklistem prop neemt en de description + knopje aan de rechterkant rendert). Klopt het dat het knopje aan de rechterkant dus niet meer dient als een knop, maar eerder als een herkenbaar symbool?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

checklistitem description in de iconbutton stoppen zou ik niet doen
=> Ik bekijk het zo: de button heeft nu een descriptive tekst. De <button> is nu alles aan de rechterkant van de checklistitem.
2021-09-16 10-20-46
Het principe van het knopje aan de rechterkant bestaat niet meer: alles is nu een beter accessible knop (met hover en focus mogelijkheden)

Qua benaming van componenten binnenin React heb ik absoluut geen voorkeur, maar ik had niet het gevoel dat de structuur een nieuwe laag nodig had omdat ik enkel tekst verplaatst heb?

laat maar weten hoe hard ik de bal misslaan heb :)

checked={isDisabled}
/>

<div
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hier zou ik een styled component van maken

Copy link
Collaborator Author

@mathieuspil mathieuspil Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ik denk dat ik weet wat je wilt zeggen :)
Bedoel je op deze manier dan: mathieuspil@05416d4 ?

@@ -33,13 +35,15 @@ export const CheckListSideBarButton = ({
iconButtonType,
value,
disabled = false,
checkListItem,
}: ICheckListSideBarButtonProp) => {
const { openSideBar } = useEduSideBar()
return (
<CheckListIconButton
onClick={() => openSideBar(eduSidebarType, value)}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ChecklistItems met een description (wat een modal triggert), opent nu tegelijkertijd een sidebar en een modal.
Screenshot 2021-09-15 at 15 24 11

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aha, dus er was een use-case waarbij dat die tekst ook geklikt kon worden! Dat wist ik niet.
Hoe lang kan die description worden? Want hoe ik het met de ux-pet zie: Als je klikt op een tekst dan zou hetgeen moeten openen dat de tekst beschrijft, niet een modal met meer info.

Zou je suggesties aanvaarden die de description niet langer in een modal toont?
Hoe lang kan deze description worden? Is dat altijd maar 1 zinnetje? En op welke soort checklistitems is een description mogelijk?
Kan je het achterliggend idee van een description bij een checklistitem even schetsen?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@timdpaep Dit is nu aangepast en dit triggert niet langer een Modal, maar de tekst wordt nu zichtbaar
2021-09-21 17-17-58

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aha, dus er was een use-case waarbij dat die tekst ook geklikt kon worden! Dat wist ik niet.
Hoe lang kan die description worden? Want hoe ik het met de ux-pet zie: Als je klikt op een tekst dan zou hetgeen moeten openen dat de tekst beschrijft, niet een modal met meer info.

Zou je suggesties aanvaarden die de description niet langer in een modal toont?
Hoe lang kan deze description worden? Is dat altijd maar 1 zinnetje? En op welke soort checklistitems is een description mogelijk?
Kan je het achterliggend idee van een description bij een checklistitem even schetsen?

Achterliggend idee is dat je soms wat extra uitleg moet geven bij een checklist item (bijv. dat er voor "het maken van oefening X" er eerst "node modules" moeten worden geïnstalleerd, ik zeg maar iets)

@timdpaep timdpaep merged commit a43da89 into timdpaep:main Jan 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants