Method: Primer::Alpha::Overlay#before_render

Defined in:
app/components/primer/alpha/overlay.rb

#before_renderObject


180
181
182
183
184
185
186
187
188
189
# File 'app/components/primer/alpha/overlay.rb', line 180

def before_render
  if @system_arguments[:role].present?
    if header?
      @system_arguments[:aria][:labelledby] ||= title_id
    else
      @system_arguments[:aria][:label] = @title
    end
  end
  with_body unless body?
end