Skip to content

Commit

Permalink
Remove unused card button style variant
Browse files Browse the repository at this point in the history
  • Loading branch information
jdwjdwjdw committed Jan 8, 2024
1 parent 7e7030f commit 23fe5c2
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 42 deletions.
9 changes: 0 additions & 9 deletions chem_h_subtheme.react_behaviors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,6 @@ card_variant_info: # part of the key after the :
bundles:
- paragraphs_type|stanford_card
config:
card_button_style:
type: select
title: 'Card Button Style'
description: Select the button color for displaying this card.
# default_value: su-card-wrapper--border-regular
options:
su-wrapper--button-purple: Purple (Pantone 269C Purple HEX 512D6D)
su-wrapper--button-teal: Teal (Pantone 2461C Teal HEX 259591)
su-wrapper--button-red: Stanford Red ( HEX 8C1515)
card_border_style:
type: select
title: 'Card Border Style'
Expand Down
3 changes: 0 additions & 3 deletions chem_h_subtheme.theme
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,6 @@ function chem_h_subtheme_preprocess_card(&$variables) {
// Add border style class to card wrapper.
$variables['attributes']['class'][] = $paragraph->getBehaviorSetting('react_paragraphs:card_variant_info', 'card_border_style', 'su-card-wrapper--border-regular');

// Add button color style class to card wrapper.
$variables['attributes']['class'][] = $paragraph->getBehaviorSetting('react_paragraphs:card_variant_info', 'card_button_style', 'su-wrapper--button-red');

$card_info = [];

// Add card type class to card wrapper. 3rd variable provides the default card type.
Expand Down
2 changes: 1 addition & 1 deletion dist/css/chem_h_subtheme.css

Large diffs are not rendered by default.

29 changes: 0 additions & 29 deletions src/scss/theme/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -282,32 +282,3 @@ a {
}
}
}

// Card & Banner buttons
// TEST AND THEN REMOVE CODE
.su-wrapper--button-purple {
.su-button,
.su-card__button {
a {
@include chemh-button--gradient;
}
}
}

.su-wrapper--button-teal {
.su-button,
.su-card__button {
a {
@include chemh-button--gradient;
}
}
}

.su-wrapper--button-red {
.su-button,
.su-card__button {
a {
@include chemh-button--gradient;
}
}
}

0 comments on commit 23fe5c2

Please sign in to comment.