Sha256: 273bdadc94d980567892404ae726c0c71a822a3d64abdc146ae60abedb90fbd9
Contents?: true
Size: 546 Bytes
Versions: 2
Compression:
Stored size: 546 Bytes
Contents
# frozen_string_literal: true # Skip to content link class SolidusAdmin::SkipLink::Component < SolidusAdmin::BaseComponent # @param href [String] the href attribute for the skip link def initialize(href:) @href = href end def call link_to t(".skip_link"), @href, class: %{ sr-only focus:not-sr-only inline-block focus:p-2 focus:absolute body-small text-white bg-black } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_admin-0.0.2 | app/components/solidus_admin/skip_link/component.rb |
solidus_admin-0.0.1 | app/components/solidus_admin/skip_link/component.rb |