Skip to content

Commit

Permalink
CHEMH-262 | @jdwjdwjdw | Remove unused card button style variant (#83)
Browse files Browse the repository at this point in the history
* Remove unused card button style variant

* Update version number
  • Loading branch information
jdwjdwjdw authored Jan 8, 2024
1 parent 7e7030f commit 497ac90
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 44 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# [ChEM-H Subtheme](https://github.com/SU-SWS/chem_h_subtheme)
##### Version: 2.x
##### Version: 2.2.3

Changelog: [Changelog.txt](CHANGELOG.txt)

Expand Down
2 changes: 1 addition & 1 deletion chem_h_subtheme.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: ChEM-H Subtheme
type: theme
description: 'ChEM-H Subtheme.'
package: Stanford
version: 2.2.2
version: 2.2.3
core_version_requirement: ^9 || ^10
base theme: stanford_basic
libraries:
Expand Down
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 497ac90

Please sign in to comment.