rename color to text_color
This commit is contained in:
@ -81,8 +81,8 @@ module Merged
|
||||
{class: clazz}
|
||||
end
|
||||
|
||||
def color_option(section , clazz = "")
|
||||
if section.has_option?("color")
|
||||
def text_color_option(section , clazz = "")
|
||||
if section.has_option?("text_color")
|
||||
clazz += color_for(section)
|
||||
end
|
||||
{class: clazz }
|
||||
@ -163,7 +163,7 @@ module Merged
|
||||
"solid_petrol" => " text-teal-700" ,
|
||||
"solid_indigo" => " text-indigo-800" ,
|
||||
"solid_black" => " text-slate-800" ,
|
||||
}[section.option("color")] || ""
|
||||
}[section.option("text_color")] || ""
|
||||
end
|
||||
# need full color names for tailwind to pick it up
|
||||
|
||||
|
Reference in New Issue
Block a user