lib/nfg_ui/components/traits/theme.rb in nfg_ui-0.9.8.17 vs lib/nfg_ui/components/traits/theme.rb in nfg_ui-0.9.8.18
- old
+ new
@@ -3,20 +3,23 @@
module NfgUi
module Components
module Traits
# Access to pre-designed theme traits
module Theme
- # TODO: Figure out how to get NfgUi::BOOTSTRAP_THEMES to be recognized for TRAITS
- TRAITS = %i[primary
- secondary
- success
- danger
- warning
- info
- light
- dark
- white
- outlined].freeze
+ COLOR_TRAITS = %i[primary
+ secondary
+ success
+ danger
+ warning
+ info
+ light
+ dark
+ white]
+
+ TRAITS = [*COLOR_TRAITS,
+ :outlined].freeze
+
+
def primary_trait
options[:theme] = :primary
end