-
Notifications
You must be signed in to change notification settings - Fork 14
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
Conversation
You can preview these changes on: |
site/pages/components/tag.tsx
Outdated
name: 'disabled', | ||
type: 'boolean', | ||
default: 'false', | ||
description: 'If true, renders the undefined tag in a disabled state.', |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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/components/illustrations/components/tag/behaviours/fixedandfullwidth.tsx
Outdated
Show resolved
Hide resolved
site/pages/components/tag.tsx
Outdated
{ | ||
name: 'eventOriginator', | ||
type: 'string', | ||
default: 'tag', | ||
description: 'Allows users to add event originator custom name.', | ||
}, |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
description: 'If provided, overrides the stylePreset of the tag.', | ||
}, | ||
{ | ||
attribute: 'tag.typographyPreset', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
attribute: 'tag.typographyPreset', | |
attribute: 'typographyPreset', |
site/pages/components/tag.tsx
Outdated
"If provided, overrides the padding of the tag. Otherwise, use spaceInsetSquish010 or spaceInsetSquish020, depending on the 'size' prop.", | ||
}, | ||
{ | ||
attribute: 'tag.spaceInline', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
attribute: 'tag.spaceInline', | |
attribute: 'spaceInline', |
site/pages/components/tag.tsx
Outdated
{ | ||
attribute: 'tag.spaceInline', | ||
type: 'MQ<string>', | ||
default: ['small = space010', 'medium = space010', 'large = space020'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default: ['small = space010', 'medium = space010', 'large = space020'], | |
default: ['small = space010', 'medium = space010', 'large = space010'], |
There was a problem hiding this comment.
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!
site/pages/components/tag.tsx
Outdated
'If provided, overrides the space between multiple children in the underlying stack.', | ||
}, | ||
{ | ||
attribute: 'tag.icon.size', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
attribute: 'tag.icon.size', | |
attribute: 'iconSize', |
site/pages/components/tag.tsx
Outdated
{ | ||
attribute: 'tag.icon.size', | ||
type: 'MQ<string>', | ||
default: ['small = space010', 'medium = space010', 'large = space020'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default: ['small = space010', 'medium = space010', 'large = space020'], | |
default: ['small = iconSize010', 'medium = iconSize010', 'large = iconSize020'], |
There was a problem hiding this comment.
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!
site/pages/components/tag.tsx
Outdated
{ | ||
label: 'Style Preset', | ||
value: { | ||
stylePreset: 'tagCustom', |
There was a problem hiding this comment.
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:
stylePreset: 'tagCustom', | |
stylePreset: 'tagPrimaryInverse', |
There was a problem hiding this comment.
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!
PPDSC-2381
What
1.Tag documentation UI.
I have done:
I have tested manually:
Before:
After:
Who should review this PR:
How to test: