Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Component: Header Logo (VLogoLoader) #371

Closed
1 task done
zackkrida opened this issue Oct 27, 2021 · 1 comment · Fixed by #448
Closed
1 task done

Component: Header Logo (VLogoLoader) #371

zackkrida opened this issue Oct 27, 2021 · 1 comment · Fixed by #448
Assignees
Labels
🧹 status: ticket work required Needs more details before it can be worked on
Milestone

Comments

@zackkrida
Copy link
Member

zackkrida commented Oct 27, 2021

Component: VLogoLoader

Description

The VLogoLoader is a component that displays the Openverse logo but also acts as a global loader to indicate that results aren't ready. In the header this component will be wrapped in a <NuxtLink /> so that it also serves as a link to the homepage.

Initially this component can be very simple, but I am exploring the usability of making it use aria-busy1 to announce the loading state. We'd have to make the results area an live region so we need to explore that more.

A good writeup of live regions can be found here: https://www.smashingmagazine.com/2015/04/its-alive-apps-that-feed-back-accessibly/

API

Props

Name Type Description
state string enum IDLE|LOADING The current state of the component, used to show the loading state

It might make sense to make the hover state a prop at some point but I don't think it's necessary yet.

Code samples

Usage:

<NuxtLink to="/">
  <VLogoLoader :state="isFetchingMedia ? LOADING : IDLE" />
</NuxtLink>

References

Implementation

  • 🙋 I would be interested in implementing this component.

Footnotes

  1. https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-busy

@zackkrida zackkrida mentioned this issue Oct 27, 2021
21 tasks
@zackkrida zackkrida changed the title "Home Symbol" (logo with loading animation) "Home Symbol" (logo with loading animation) Component Oct 27, 2021
@zackkrida zackkrida self-assigned this Oct 27, 2021
@zackkrida zackkrida added the 🧹 status: ticket work required Needs more details before it can be worked on label Oct 27, 2021
@zackkrida zackkrida changed the title "Home Symbol" (logo with loading animation) Component Component: Header Logo (VLogoLoader) Nov 9, 2021
@zackkrida zackkrida mentioned this issue Nov 25, 2021
7 tasks
@zackkrida
Copy link
Member Author

It turned out that live region support wasn't appropriate for this component. I'll link to the new live region ticket for the searchgrid when it is ready.

@zackkrida zackkrida added this to the Redesign milestone Dec 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🧹 status: ticket work required Needs more details before it can be worked on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant