Sha256: a34c9f001f2a7140742af43fb3ca61bcbc70b9f092bdcffefb79385beb8294dd

Contents?: true

Size: 835 Bytes

Versions: 3

Compression:

Stored size: 835 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"
        )
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
openproject-primer_view_components-0.29.0 app/components/primer/open_project/zen_mode_button.rb
openproject-primer_view_components-0.28.1 app/components/primer/open_project/zen_mode_button.rb
openproject-primer_view_components-0.28.0 app/components/primer/open_project/zen_mode_button.rb