Skip to content

Commit

Permalink
Hook up none option to emphasis prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomm1128 committed Dec 12, 2024
1 parent 37d44f5 commit f62d749
Showing 1 changed file with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class HomeAddressStreet < Playbook::KitBase
prop :address_cont
prop :city
prop :emphasis, type: Playbook::Props::Enum,
values: %w[street city],
values: %w[street city none],
default: "street"
prop :home_id, type: Playbook::Props::Number
prop :home_url
Expand Down Expand Up @@ -77,6 +77,20 @@ def street_emphasis_props
}
end

def none_emphasis_props
{
address_house_style: address_house_style,
address_house_style2: address_house_style2,
city_state_zip: city_state_zip,
dark: dark,
home_id: home_id,
home_url: home_url,
target: target_option,
new_window: new_window,
territory: territory,
}
end

def target_option
if target && home_url
target
Expand Down

0 comments on commit f62d749

Please sign in to comment.