Skip to content

Conversation

@awilfox
Copy link
Member

@awilfox awilfox commented Jan 13, 2026

Before this change, the containing a element was using a display of contents, which caused the elements to be inaccessible via the keyboard. Changing the a to be a simple flex item caused various other layout issues that were corrected:

  • vertical-align was set to middle for both the image and text, allowing them to look mostly the same as before.

  • Added text-align: center to ensure the elements are centred on mobile-sized viewports in column layout mode.

  • On mobile, the image remains a block element so that it causes a hard break in the flex grid (otherwise, on larger mobile/tablet screen sizes, it is undersized and the "Audio/Video" appears next to the logo element). On desktop, they are no longer required to be block elements.

  • Additionally, the fixed width size of the logo is now set as the max-width, and a width of 100% is used. This allows the logo to shrink on very small viewports, such as an iPhone 11 in 2x zoom mode. The iPhone 11 @ 2x has an effective viewport of 305px, which is smaller than the 315px width and caused the logo to be cut off with the current rules.

Closes: ADA-669


Comparison of before and after on small mobile viewport (Safari 18.6, responsive design mode, 300x600 viewport, 100% @ 2x):

Present:
old-mobile
With these changes:
new-mobile

@awilfox awilfox self-assigned this Jan 13, 2026
Copy link
Contributor

@jason-raitz jason-raitz left a comment

Choose a reason for hiding this comment

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

lgtm

Before this change, the containing `a` element was using a `display`
of `contents`, which caused the elements to be inaccessible via the
keyboard.  Changing the `a` to be a simple flex item caused various
other layout issues that were corrected:

* `vertical-align` was set to `middle` for both the image and text,
  allowing them to look mostly the same as before.

* Added `text-align: center` to ensure the elements are centred on
  mobile-sized viewports in column layout mode.

* On mobile, the image remains a `block` element so that it causes a
  hard break in the flex grid (otherwise, on larger mobile/tablet
  screen sizes, it is undersized and the "Audio/Video" appears next to
  the logo element).  On desktop, they are no longer required to be
  `block` elements.

* Additionally, the fixed width size of the logo is now set as the
  `max-width`, and a `width` of `100%` is used.  This allows the logo
  to shrink on very small viewports, such as an iPhone 11 in 2x zoom
  mode.  The iPhone 11 @ 2x has an effective viewport of 305px, which
  is smaller than the 315px width and caused the logo to be cut off
  with the current rules.

Closes: ADA-669
@awilfox awilfox merged commit 9ece7f0 into main Jan 14, 2026
5 checks passed
@awilfox awilfox deleted the awilfox/ADA-669 branch January 14, 2026 00:58
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.

4 participants