-
Notifications
You must be signed in to change notification settings - Fork 89
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
chore(chrome): update prop descriptions #954
Changes from 7 commits
486a428
12f2145
a7a3633
720e790
edede97
a513cbf
8aeb233
fc61c57
5b813ae
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,17 +15,11 @@ import { | |
const COMPONENT_ID = 'chrome.base_header_item'; | ||
|
||
export interface IStyledBaseHeaderItemProps { | ||
/** | ||
* Horizontally maximize a flex item in the header to take as much space as possible (i.e. breadcrumb container) | ||
**/ | ||
/** Maximizes the width of a flex item in the header (i.e. breadcrumb container) */ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should remove |
||
maxX?: boolean; | ||
/** | ||
* Vertically maximize the height for a header item (i.e. contains a search input) | ||
**/ | ||
/** Maximizes the height of the item (i.e. contains a search input) */ | ||
maxY?: boolean; | ||
/** | ||
* Round the border radius for a header item (i.e. user icon) | ||
**/ | ||
/** Rounds the border radius of the item (i.e. user icon) */ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Per guidance from Content Design and https://garden.zendesk.com/components/avatar#how-to-use-it-well, I wonder if we should swap There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need the bit inside the parenthesis? For me I'm not sure if it adds value as it seems pretty self-explanatory There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nope, good call. |
||
isRound?: boolean; | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,9 +11,7 @@ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-the | |
const COMPONENT_ID = 'chrome.header_item_text'; | ||
|
||
export interface IStyledHeaderItemTextProps { | ||
/** | ||
* Clip text (but leave accessible to screenreaders) for an icon-only header item | ||
**/ | ||
/** Hides item text. Text remains accessible to screenreaders. */ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
isClipped?: boolean; | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,9 +21,7 @@ import { getNavWidth } from '../nav/StyledNav'; | |
const COMPONENT_ID = 'chrome.header_item'; | ||
|
||
export interface IStyledLogoHeaderItemProps { | ||
/** | ||
* Applies product-specific color palette | ||
**/ | ||
/** Applies a product-specific color palette */ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this could be improved with "Applies a brand color to the product logo". For the fussy details, the given name is used to dereference a brand color from the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. TBH, I regret having built this component 😅 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ahh, I see. Thanks for the explanation! |
||
product?: PRODUCT; | ||
} | ||
|
||
|
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.
Replace
item textwith something like "item's content" or "sub-items" (not sure that's a term we want to use 😝 ) or, similar to Accordion "item's section" (as this is technically an accordion control).See the demo at https://garden.zendesk.com/components/chrome#navigation-panel with "show subnav" activated for additional working details for a
CollapsibleSubNavItem
.