Class: Blacklight::SkipLinkComponent
- Inherits:
-
Component
- Object
- ViewComponent::Base
- Component
- Blacklight::SkipLinkComponent
show all
- Defined in:
- app/components/blacklight/skip_link_component.rb
Constant Summary
Constants inherited
from Component
Component::EXCLUDE_VARIABLES
Instance Method Summary
collapse
Methods inherited from Component
compiler, config, #inspect
Instance Method Details
#link_classes ⇒ Object
13
14
15
|
# File 'app/components/blacklight/skip_link_component.rb', line 13
def link_classes
'd-inline-flex p-2 m-1'
end
|
#link_to_main ⇒ Object
9
10
11
|
# File 'app/components/blacklight/skip_link_component.rb', line 9
def link_to_main
link_to t('blacklight.skip_links.main_content'), '#main-container', class: link_classes
end
|
#link_to_search ⇒ Object
5
6
7
|
# File 'app/components/blacklight/skip_link_component.rb', line 5
def link_to_search
link_to t('blacklight.skip_links.search_field'), '#search_field', class: link_classes
end
|