a11y_fluidRow: Accessible fluid row

View source: R/layout.R

a11y_fluidRowR Documentation

Accessible fluid row

Description

A wrapper for shiny::fluidRow() with optional section landmarks, ARIA attributes according to BITV 2.0, and custom CSS class. Ensures responsive layout by validating that all columns are a11y_columns and their widths sum to 12.

Usage

a11y_fluidRow(..., id = NULL, aria_label = NULL)

Arguments

...

Content to place into the row (columns, tags)

id

(optional) Row ID

aria_label

(optional) aria-label for the row (helpful for sections)

Value

HTML ⁠<section>⁠ tag (row)

Examples

# A row with two columns (widths must sum to 12)
a11y_fluidRow(
  a11y_column(6, htmltools::p("Left")),
  a11y_column(6, htmltools::p("Right"))
)

# Labeled section row
a11y_fluidRow(
  a11y_column(12, htmltools::p("Full width")),
  aria_label = "Results section"
)


a11yShiny documentation built on April 1, 2026, 5:07 p.m.