Sha256: 43dbec93e0033f2cadd87be1cdf6e347af736a150756fe4daa1d8ef5783e94c6

Contents?: true

Size: 922 Bytes

Versions: 45

Compression:

Stored size: 922 Bytes

Contents

# frozen_string_literal: true

module Primer
  module OpenProject
    # Add a general description of component here
    # Add additional usage considerations or best practices that may aid the user to use the component correctly.
    # @accessibility Add any accessibility considerations
    class ZenModeButton < Primer::Component
      status :open_project

      ZEN_MODE_BUTTON_LABEL = I18n.t("label_zen_mode")
      ZEN_MODE_BUTTON_ICON = "screen-full"

      # @param system_arguments [Hash] <%= link_to_system_arguments_docs %>
      def initialize(**system_arguments)
        @system_arguments = system_arguments
        @system_arguments[:tag] = "zen-mode-button"
        @system_arguments[:classes] =
        class_names(
          @system_arguments[:classes],
          "ZenModeButton"
        )

        @button_size = @system_arguments[:size] || Primer::Beta::Button::DEFAULT_SIZE
      end
    end
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
openproject-primer_view_components-0.52.2 app/components/primer/open_project/zen_mode_button.rb
openproject-primer_view_components-0.52.1 app/components/primer/open_project/zen_mode_button.rb
openproject-primer_view_components-0.52.0 app/components/primer/open_project/zen_mode_button.rb
openproject-primer_view_components-0.51.0 app/components/primer/open_project/zen_mode_button.rb
openproject-primer_view_components-0.50.1 app/components/primer/open_project/zen_mode_button.rb
openproject-primer_view_components-0.50.0 app/components/primer/open_project/zen_mode_button.rb
openproject-primer_view_components-0.49.2 app/components/primer/open_project/zen_mode_button.rb
openproject-primer_view_components-0.49.1 app/components/primer/open_project/zen_mode_button.rb
openproject-primer_view_components-0.49.0 app/components/primer/open_project/zen_mode_button.rb
openproject-primer_view_components-0.48.2 app/components/primer/open_project/zen_mode_button.rb
openproject-primer_view_components-0.48.1 app/components/primer/open_project/zen_mode_button.rb
openproject-primer_view_components-0.48.0 app/components/primer/open_project/zen_mode_button.rb
openproject-primer_view_components-0.47.1 app/components/primer/open_project/zen_mode_button.rb
openproject-primer_view_components-0.47.0 app/components/primer/open_project/zen_mode_button.rb
openproject-primer_view_components-0.46.1 app/components/primer/open_project/zen_mode_button.rb
openproject-primer_view_components-0.46.0 app/components/primer/open_project/zen_mode_button.rb
openproject-primer_view_components-0.45.0 app/components/primer/open_project/zen_mode_button.rb
openproject-primer_view_components-0.44.3 app/components/primer/open_project/zen_mode_button.rb
openproject-primer_view_components-0.44.2 app/components/primer/open_project/zen_mode_button.rb
openproject-primer_view_components-0.44.1 app/components/primer/open_project/zen_mode_button.rb