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

Improve event details markup structure #6116

Open
wants to merge 1 commit into
base: a11y
Choose a base branch
from

Conversation

foxbunny
Copy link
Collaborator

  • Add appropriate section headings to event details
  • Replace the jQuery code for the participant list with a custom element
  • Fix minor layout issues and remove .align-top class

@foxbunny foxbunny marked this pull request as ready for review December 25, 2023 10:20
@foxbunny foxbunny force-pushed the event-page-structure branch 2 times, most recently from ebf7b31 to 4d0f625 Compare January 5, 2024 10:13
@foxbunny
Copy link
Collaborator Author

@ThiefMaster Is this a pipeline issue? Maybe you could re-run this?

@tomasr8
Copy link
Member

tomasr8 commented Jan 17, 2024

The Check details button looks a bit misaligned now:
image

@ThiefMaster ThiefMaster changed the title Imrove event details markup structure Improve event details markup structure Jan 17, 2024
@foxbunny foxbunny force-pushed the event-page-structure branch 2 times, most recently from 84e0295 to 00dd0af Compare January 17, 2024 12:02
}
linesFound++;
if (linesFound > cutOffLines) {
// We have crossed the cutOffLines thrshold, so no need to test further
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// We have crossed the cutOffLines thrshold, so no need to test further
// We have crossed the cutOffLines threshold, so no need to test further

@tomasr8
Copy link
Member

tomasr8 commented Jan 18, 2024

Is there anything missing in the PR?

@foxbunny
Copy link
Collaborator Author

Is there anything missing in the PR?

Other than that typo you pointed out, I don't think so.

@ThiefMaster
Copy link
Member

The zoom join button looks rather broken now:
image

The event description (especially if single-line) and external references are no longer properly aligned:
image

@ThiefMaster
Copy link
Member

The 100px margin of the definition list in .event-service-details is no longer sufficiant with the larger text size:

old:
image

new:
image


markCollapsible = () => {
clearTimeout(this.debounceTimer);
this.debounceTimer = setTimeout(() => {
Copy link
Member

Choose a reason for hiding this comment

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

you don't want to use _.debounce() from lodash? ;)

@foxbunny
Copy link
Collaborator Author

How do you get that even thing?

@ThiefMaster
Copy link
Member

the zoom thing? unfortunately only by having the zoom plugin enabled and configured... but the vc_dummy plugin (from the indico-plugins repo) adds a fake videoconference service which you can create w/o having to configure any apis etc. it has less data so the bug isn't immediately showing up there though, and it has no join button:

image

@foxbunny
Copy link
Collaborator Author

it has less data so the bug isn't immediately showing up there though, and it has no join button:

Can you give me the outer HTML for the common ancestor of the button and the chevron? I'll insert it into the page and figure out what's going on.

@foxbunny
Copy link
Collaborator Author

The 100px margin of the definition list in .event-service-details is no longer sufficiant with the larger text size

Those should be converted to a table with role="presentation".

@ThiefMaster
Copy link
Member

ThiefMaster commented Jan 18, 2024

here's the html for the full videoconference thing: https://bpa.st/raw/HL2NWPWW5NVGGPMOTYLTFCSEFE

@foxbunny
Copy link
Collaborator Author

Interesting... so the expand/collapse trigger comes after the details. That must be fixed, too. I'll get on this tomorrow.

@ThiefMaster
Copy link
Member

I would be fine converting this to a table BTW :) I think back then I thought a dl has better semantics than a table, since it's not really tabular data...

BTW the source for this in the plugins is vc_zoom/indico_vc_zoom/templates/info_box.html (same filename in case of the vc_dummy plugin, just different path)

@foxbunny
Copy link
Collaborator Author

I would be fine converting this to a table BTW :) I think back then I thought a dl has better semantics than a table, since it's not really tabular data...

It's technically not tabular data. That's why role="presentation" (or role="none"). It basically serves solely to align things.

Tbh, I don't really know what the best markup would be in these cases. As far as screen readers and such are concerned, it's enough that these are read sequentially. A colon is usually desirable to add a pause between the label and the value, tho.

@foxbunny
Copy link
Collaborator Author

Ok, so, since the plugin is not part of the code base, I'm going to revisit it at a later date. For now I've assumed that 100px was enough margin, and converted it to 8em. Let me know if that works. I'll install the plugin later once I'm done on the existing PRs and revisit the table layout later.

- Add appropriate section headings to event details
- Replace the jQuery code for the participant list with a
  <ind-collapsible> custom element
- Fix minor layout issues and remove .align-top class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants