Module: Primer::Alpha::SelectPanel::Utils
- Included in:
- Primer::Alpha::SelectPanel, ItemList
- Defined in:
- app/components/primer/alpha/select_panel.rb
Instance Method Summary collapse
Instance Method Details
#raise_if_role_given!(**system_arguments) ⇒ Object
255 256 257 258 259 260 261 262 263 |
# File 'app/components/primer/alpha/select_panel.rb', line 255 def raise_if_role_given!(**system_arguments) return if shouldnt_raise_error? return unless system_arguments.include?(:role) raise( "Please avoid passing the `role:` argument to `SelectPanel` and its subcomponents. "\ "The component will automatically apply the correct roles where necessary." ) end |