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
234 235 236 237 238 239 240 241 242 |
# File 'app/components/primer/alpha/select_panel.rb', line 234 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 |