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(PPDSC-2381): Tag documentation #402

Merged
merged 28 commits into from
Oct 18, 2022

Conversation

RashikaNewsUK
Copy link
Contributor

@RashikaNewsUK RashikaNewsUK commented Oct 7, 2022

PPDSC-2381

What

1.Tag documentation UI.

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:

@RashikaNewsUK RashikaNewsUK added docs Improvements or additions to documentation ready for design review Please assist in getting this reviewed labels Oct 7, 2022
@newskit-engineering
Copy link
Collaborator

@RashikaNewsUK RashikaNewsUK added ready for review Please assist in getting this reviewed and removed ready for design review Please assist in getting this reviewed labels Oct 11, 2022
name: 'disabled',
type: 'boolean',
default: 'false',
description: 'If true, renders the undefined tag in a disabled state.',
Copy link
Contributor

Choose a reason for hiding this comment

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

What does undefined mean in this context? Might be a question for Mike M.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @mstuartf,
I have removed the word "undefined" from the API section. Could you please take look and confirm.

Thanks,
Rashika.

site/pages/components/tag.tsx Outdated Show resolved Hide resolved
Comment on lines 56 to 61
{
name: 'eventOriginator',
type: 'string',
default: 'tag',
description: 'Allows users to add event originator custom name.',
},
Copy link
Contributor

Choose a reason for hiding this comment

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

The Tag does not support the event originator yet, better remove that part

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have removed the event originator form the api section. -thanks!

site/pages/components/tag.tsx Outdated Show resolved Hide resolved
description: 'If provided, overrides the stylePreset of the tag.',
},
{
attribute: 'tag.typographyPreset',
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
attribute: 'tag.typographyPreset',
attribute: 'typographyPreset',

site/pages/components/tag.tsx Outdated Show resolved Hide resolved
"If provided, overrides the padding of the tag. Otherwise, use spaceInsetSquish010 or spaceInsetSquish020, depending on the 'size' prop.",
},
{
attribute: 'tag.spaceInline',
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
attribute: 'tag.spaceInline',
attribute: 'spaceInline',

{
attribute: 'tag.spaceInline',
type: 'MQ<string>',
default: ['small = space010', 'medium = space010', 'large = space020'],
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
default: ['small = space010', 'medium = space010', 'large = space020'],
default: ['small = space010', 'medium = space010', 'large = space010'],

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. Modified the large value. -thanks!

'If provided, overrides the space between multiple children in the underlying stack.',
},
{
attribute: 'tag.icon.size',
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
attribute: 'tag.icon.size',
attribute: 'iconSize',

{
attribute: 'tag.icon.size',
type: 'MQ<string>',
default: ['small = space010', 'medium = space010', 'large = space020'],
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
default: ['small = space010', 'medium = space010', 'large = space020'],
default: ['small = iconSize010', 'medium = iconSize010', 'large = iconSize020'],

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. Modified the default values. -thanks!

{
label: 'Style Preset',
value: {
stylePreset: 'tagCustom',
Copy link
Contributor

Choose a reason for hiding this comment

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

tagCustom does not exist try with:

Suggested change
stylePreset: 'tagCustom',
stylePreset: 'tagPrimaryInverse',

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. Modified the stylePreset value. -thanks!

@RashikaNewsUK RashikaNewsUK merged commit b086685 into main Oct 18, 2022
@RashikaNewsUK RashikaNewsUK deleted the docs/PPDSC-2381-tag-documentation branch October 18, 2022 04:54
@RashikaNewsUK RashikaNewsUK added ready to merge please assist in getting this merged and removed ready for review Please assist in getting this reviewed labels Oct 18, 2022
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 to merge please assist in getting this merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants