app/lib/primer/classify/cache.rb in primer_view_components-0.0.27 vs app/lib/primer/classify/cache.rb in primer_view_components-0.0.28
- old
+ new
@@ -48,11 +48,16 @@
keys: Primer::Classify::DISPLAY_KEY,
values: [:flex, :block, :inline_block, :inline_flex, :none, :table, :table_cell]
)
preload(
- keys: [Primer::Classify::COLOR_KEY, Primer::Classify::BG_KEY],
- values: [:blue, :gray_dark, :gray, :gray_light, :red, :orange, :orange_light, :yellow, :green, :purple, :white, :pink]
+ keys: [Primer::Classify::COLOR_KEY],
+ values: [*Primer::Classify::FunctionalTextColors::OPTIONS, *Primer::Classify::FunctionalTextColors::DEPRECATED_OPTIONS]
+ )
+
+ preload(
+ keys: [Primer::Classify::BG_KEY],
+ values: [*Primer::Classify::FunctionalBackgroundColors::OPTIONS, *Primer::Classify::FunctionalBackgroundColors::DEPRECATED_OPTIONS]
)
preload(
keys: Primer::Classify::VERTICAL_ALIGN_KEY,
values: [:baseline, :top, :middle, :bottom, :text_top, :text_bottom]