Module: StimulusPlumbers::Plumber::Options::Aria

Extended by:
ActiveSupport::Concern
Included in:
Form::Builder, Base
Defined in:
lib/stimulus_plumbers/plumber/options/aria.rb

Instance Method Summary collapse

Instance Method Details

#labelled_aria(label, labelledby: nil) ⇒ Object



11
12
13
# File 'lib/stimulus_plumbers/plumber/options/aria.rb', line 11

def labelled_aria(label, labelledby: nil)
  { label: (label unless labelledby), labelledby: labelledby }.compact
end