Skip to content

Commit

Permalink
Merge pull request #78 from wpengine/RossoMaguire/TITAN-363
Browse files Browse the repository at this point in the history
[TITAN-363] - UI Adjustments
  • Loading branch information
RossoMaguire authored Jun 1, 2023
2 parents d6adbb4 + 80e7b94 commit 0cbdc5b
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 6 deletions.
4 changes: 3 additions & 1 deletion components/CtaButton/CtaButton.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
margin-top: 1em;
background-color: var(--wpe--color--green);
text-decoration: none;
font-weight: 500;
font-size: 1em;
padding: 1rem;
min-width: 115px;
display: inline-block;
color: var(--wpe--color--white);
transition: all 0.5s;
cursor: pointer;
border: none;
&:hover {
background-color: var(--wpe--color--green);
}
Expand Down
4 changes: 0 additions & 4 deletions components/EntryHeader/EntryHeader.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
position: relative;
overflow: hidden;
margin-bottom: 2rem;

@media (min-width: $breakpoint-small) {
margin-bottom: 5rem;
}
}

.has-image {
Expand Down
1 change: 1 addition & 0 deletions components/Main/Main.module.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.component {
color: var(--wpe--main--color);
background-color: var(--wpe--main--background-color);
min-height: 100vh;
}
6 changes: 6 additions & 0 deletions components/ProductDetails/ProductMeta.module.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.productMeta {
@import 'styles/breakpoints';

input.quantity {
width: 5em;
padding: 0.25em;
Expand All @@ -9,4 +11,8 @@
cursor: not-allowed;
}
}

@media (max-width: $breakpoint-extra-small) {
margin-bottom: 4rem;
}
}
3 changes: 2 additions & 1 deletion components/ProductDetails/ProductVariantOptions.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import styles from './ProductVariantOptions.module.scss';
import classNames from 'classnames';
import VARIANT_MAP from '../../constants/variant-map';

const cx = classNames.bind(styles);

Expand Down Expand Up @@ -40,7 +41,7 @@ const ProductVariantOptions = ({ selected, options, handleOptionChange }) => {
}
)}
style={{
backgroundColor: option,
backgroundColor: VARIANT_MAP[option],
}}
/>
</label>
Expand Down
8 changes: 8 additions & 0 deletions constants/variant-map.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const VARIANT_MAP = {
blue: 'blue',
purple: 'purple',
charcoal: 'black',
red: 'red',
};

export default VARIANT_MAP;

0 comments on commit 0cbdc5b

Please sign in to comment.