Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs(822) Card Composable doc site #876

Merged
merged 30 commits into from
May 19, 2023
Merged

Conversation

jannuk59
Copy link
Contributor

@jannuk59 jannuk59 commented May 5, 2023

closes #822

What

  1. Background - why this is needed
  2. What did you do
  3. What does the reviewers should expect

I have done:

  • Written unit tests against changes
  • Written functional tests against the component and/or NewsKit site
  • Updated relevant documentation

I have tested manually:

  • The feature's functionality is working as expected on Chrome, Firefox, Safari and Edge
  • The screen reader reads and flows through the elements as expected.
  • There are no new errors in the browser console coming from this PR.
  • When visual test is not added, it renders correctly on different browsers and mobile viewports (Safari, Firefox, small mobile viewport, tablet)
  • The Playground feature is working as expected

Before:

After:

Who should review this PR:

How to test:

@github-actions github-actions bot added the docs Improvements or additions to documentation label May 5, 2023
@pp-serviceaccount
Copy link
Collaborator

@jannuk59 jannuk59 added ready for design review Please assist in getting this reviewed draft This is a draft PR and not intended for formal review yet labels May 5, 2023
@jannuk59 jannuk59 added ready for review Please assist in getting this reviewed and removed draft This is a draft PR and not intended for formal review yet ready for design review Please assist in getting this reviewed labels May 15, 2023
@jannuk59 jannuk59 marked this pull request as ready for review May 15, 2023 13:00
Comment on lines 472 to 484
attribute: 'paddingBlockStart',
type: 'MQ<string>',
default: '',
description:
'Takes one space token to specify the logical block start padding of the container. Can be used on breakpoints',
},
{
attribute: 'paddingBlockEnd',
type: 'MQ<string>',
default: '',
description:
'Takes one space token to specify the logical block end padding of the container. Can be used on breakpoints',
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All padding and margin can be deleted, since commonLogicalProps() function is doing the same

{
title: 'CardActions',
summary:
'Props and Overrides same as GridLayout + can have stylePreset and transitionPreset as an override',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would delete this summary and add props & overrides same way as CardComposable component

Comment on lines 421 to 422
summary:
'Props and Overrides same as CardComposable + can have stylePreset and transitionPreset as an override',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this one

Comment on lines 434 to 435
summary:
'Props and Overrides same as CardComposable component + can have stylePreset and transitionPreset as an override',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this one

Comment on lines 455 to 456
summary:
'Props and Overrides same as CardComposable component + can have stylePreset and transitionPreset as an override',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this one

site/pages/components/card-composable.tsx Show resolved Hide resolved
site/pages/components/card-composable.tsx Show resolved Hide resolved
Comment on lines 435 to 447
{
name: 'rowGap',
type: 'MQ<string>',
description: 'If provided, applies rowGap to the grid',
required: null,
},
{
name: 'columnGap',
type: 'MQ<string>',
description: 'If provided, applies columnGap to the grid',
required: null,
},
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you store all these props and overrides in consts so that they can be re-used across all components?
Also, CardComposable needs same props.
Apart from that, everything else seems good and ready for approval, thank you

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done @mutebg . Please have a review on it

Comment on lines 429 to 434
name: 'media',
type: 'ImageProps',
required: undefined,
description:
'If this parameter is provided as ImageProps object (see Image documentation), it will render the media as an image.',
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to reverse the media prop

description: 'If provided, overrides the minHeight of the grid',
attribute: 'stylePreset',
type: 'MQ<String>',
default: 'cardContainer',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CardAction does not have default stylePreset and transitionPreset

{
attribute: 'stylePreset',
type: 'MQ<String>',
default: 'cardContainer',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CardContent does not have default stylePreset and transitionPreset

Comment on lines 649 to 661
{
attribute: 'stylePreset',
type: 'MQ<String>',
default: 'cardContainer',
description:
'If provided, overrides the stylePreset of the card.',
},
{
attribute: 'transitionPreset',
type: 'String | String[]',
default: 'backgroundColorChange',
description: '',
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CardMedia does not have default stylePreset and transitionPreset

still be added before or after the LinkStandalone component.
</>
),
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you need to add expand prop

@jannuk59 jannuk59 merged commit 335b02c into main May 19, 2023
@jannuk59 jannuk59 deleted the docs/822-card-composable-doc-site branch May 19, 2023 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation ready for review Please assist in getting this reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docs site page for Card Composable
4 participants