Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
fnhipster committed Dec 11, 2019
2 parents 98f2166 + 3895705 commit d2acee4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pmet-public/luma-ui",
"version": "1.0.0-beta.17",
"version": "1.0.0-beta.18",
"description": "Luma React UI LIbrary",
"repository": "https://github.com/PMET-public/luma-ui.git",
"author": "Carlos A. Cabrera @fnhhipster",
Expand Down
1 change: 1 addition & 0 deletions src/components/Form/ThumbSwatches/ThumbSwatches.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export const ThumbSwatches: Component<ThumbSwatchesProps> = React.forwardRef(
ref={ref as any}
type={type}
name={name}
defaultChecked={items.length === 1}
{...item}
/>
<label htmlFor={`swatch-group__${name}__${index}`}>
Expand Down
17 changes: 9 additions & 8 deletions src/templates/Product/Product.styled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ export const Wrapper = styled.div`
grid-auto-rows: minmax(max-content, max-content);
grid-gap: 1rem;
@media ${props => props.theme.breakpoints.untilMedium} {
@media ${props => props.theme.breakpoints.smallOnly} {
display: grid;
grid-auto-rows: max-content;
grid-template-columns: 1fr;
}
@media ${props => props.theme.breakpoints.large} {
@media ${props => props.theme.breakpoints.medium} {
display: grid;
grid-auto-rows: max-content;
grid-gap: 2rem;
Expand All @@ -32,17 +32,18 @@ export const Images = styled.div`
display: grid;
align-items: center;
@media ${props => props.theme.breakpoints.untilMedium} {
@media ${props => props.theme.breakpoints.smallOnly} {
position: sticky;
top: 6rem;
z-index: 0;
max-height: calc(100vh - 20rem);
}
`

export const CarouselWrapper = styled.div`
padding: 0;
@media ${props => props.theme.breakpoints.large} {
@media ${props => props.theme.breakpoints.medium} {
max-width: 120rem;
grid-auto-flow: row;
grid-gap: 0.5rem;
Expand All @@ -64,7 +65,7 @@ export const CarouselItem = styled.div`
height: 100%;
}
@media ${props => props.theme.breakpoints.large} {
@media ${props => props.theme.breakpoints.medium} {
grid-column-end: span 2;
}
Expand All @@ -78,7 +79,7 @@ export const CarouselItem = styled.div`
`

export const InfoWrapper = styled.div`
@media ${props => props.theme.breakpoints.untilMedium} {
@media ${props => props.theme.breakpoints.smallOnly} {
background-color: ${props => props.theme.colors.surface};
border-radius: 1rem 1rem 0 0;
box-shadow: 0 -0.5rem 0.3rem rgba(0, 0, 0, 0.05);
Expand All @@ -99,7 +100,7 @@ export const InfoWrapper = styled.div`
`

export const InfoInnerWrapper = styled.div`
@media ${props => props.theme.breakpoints.large} {
@media ${props => props.theme.breakpoints.medium} {
align-items: center;
display: flex;
justify-content: center;
Expand Down Expand Up @@ -139,7 +140,7 @@ export const ThumbSwatchesWrapper = styled.div`
${ThumbSwatchesItems} {
grid-template-columns: repeat(3, 1fr);
@media ${props => props.theme.breakpoints.large} {
@media ${props => props.theme.breakpoints.medium} {
grid-template-columns: repeat(4, 1fr);
}
}
Expand Down
1 change: 1 addition & 0 deletions src/templates/Product/Product.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ export const Product: Component<ProductProps> = ({
{type === 'thumb' && (
<ThumbSwatchesWrapper>
<ThumbSwatches
ref={register({ required })}
{...(swatches as ThumbSwatchesProps)}
/>
</ThumbSwatchesWrapper>
Expand Down

0 comments on commit d2acee4

Please sign in to comment.