Not everyone can hover

The opening hours of an exhibition stay visible while a detail can be opened with a mouse, a keyboard or a tap.

Graphic and interaction design
A mouse and a finger pointing at two different versions of the same card.
A mouse and a finger pointing at two different versions of the same card. AI-generated illustration.

On a card, I display the title of an exhibition and hide the time until the cursor passes over the photograph. To the user, this seems like a small gesture. On a touch screen, I can open the card with a tap, without having to move my finger across the screen above the photograph. The time determines whether it’s worth opening the card, and that information remains in the place where the finger doesn’t reach.

A view that depends on the device

The mouse cursor has a start and an end without requiring activation. The pointer arrives at the box, stops, and then moves on. With the keyboard, the focus moves between the controls that can receive it. A static image does not become a control simply because I have applied a CSS effect to it. On some devices, a touch can produce a behaviour similar to that of a mouse cursor, but the outcome may depend on the browser or whether the same touch needs to open a link.

Therefore, I would change the question. What is the information I expect to be able to read before making a decision, regardless of the method I am using? For the exhibition, it would be the opening hours, which should be placed next to the title. Below, I could add a note about entry. This is already a significant difference: the opening hours help to decide whether to continue, while the note accompanies those who are looking for specific information.

The problem becomes more complex when the card already has a photograph and a title that function as links. Adding a second target within the first makes it difficult to predict what will be activated. I would opt for two elements side-by-side: the title leads to the exhibition page, and the control expands the practical information. The trial isolates the second path. On the page that includes both, I would check the order in which they appear and where the focus falls when the detail is closed.

A key beside a card with a visible red keyboard focus outline.
A key beside a card with a visible red keyboard focus outline. AI-generated illustration.

A close-up view of a detail

The demonstration feature has a visible time display and a line indicating the details. The control is native HTML. You can activate it with a mouse click, with the keyboard using Tab, and with a touch on a mobile device. You can close it from the same location. The time display remains in the same place, and the text of the note remains on the page when I open it. The demonstration starts from a hypothetical exhibition and is designed to work without relying on hovering.

It is possible to test this without starting from a list of devices. I will set aside the mouse and try to get the time. Then, I will open and close the details using only the keyboard. I will then return to a page width of a phone and do the same with a tap. At each step, I will also observe the point where I am anchored. The note should appear without causing me to lose the exhibition title or jump to another part of the page.

A card with opening hours and an entrance detail

Fictional exhibition. The opening hours appear before the control that expands the detail.

Display of paper forms
Today from 16:00 to 20:00

Entrance details

The entrance is from the courtyard, next to the staircase.

The WCAG criterion regarding content that appears on mouseover or focus refers to another possible option. When using this mechanism, it’s important to consider whether the content can be closed, reached with the cursor, and remain visible for the duration specified by the criterion. For example, consider a note that occupies a single row. If it disappears as soon as I try to move the cursor over it, it may be difficult to read, even with a mouse.

First, the information that helps people make a decision.

I would keep the effects in place as clues to help those who encounter them, for example, a visual indicator showing how far a control extends. This type of effect is valuable if it respects the visible boundary to users of Tab. Hiding the time, on the other hand, changes the information available to those still deciding. It also adds a cost for users of the mouse, as each tab needs to be examined closely before two times can be combined.

There’s another effect that’s easy to overlook. If every card opens a panel simply by hovering the cursor, moving the mouse to reach a distant card creates openings along the way. This can be useful when the reader is actively looking for a specific card, but it can become a hindrance when they are simply navigating the page. I would prefer that the hover action indicates the presence of the control. A clear gesture gives the reader the time to decide whether or not to open the panel.

Before drawing the gesture, I choose what needs to be immediately clear. When presenting two exhibits side-by-side, I want to know which one is about to close. Having both exhibits in view is sufficient. For the rest, I can zoom in on specific details when necessary, using the gesture I have available.

A key beside a card with a visible red keyboard focus outline.
A key beside a card with a visible red keyboard focus outline. AI-generated illustration.