Skip to content

Conversation

@jzempel
Copy link
Member

@jzempel jzempel commented Sep 25, 2024

Description

  • expose TooltipModal internal-only offset prop to decrease space between ColorPickerDialog/ColorSwatchDialog and trigger (per designs)
  • prevent render thrashing on getColor storybook demo
  • split migration guides out of historical changelogs for improved website documentation
Screenshot 2024-09-25 at 3 37 57 PM

'aria-label',
'Color picker'
);
const theme = useTheme() || DEFAULT_THEME;
Copy link
Contributor

Choose a reason for hiding this comment

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

#1914 build the case that components should always be wrapped in ThemeProvider starting with v9. Do we still need the fallback DEFAULT_THEME?

Suggested change
const theme = useTheme() || DEFAULT_THEME;
const theme = useTheme()

Copy link
Member Author

Choose a reason for hiding this comment

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

My preference is to be consistent with other element-level components for now. If/when we determine to simplify, it should happen across everything.

Copy link
Contributor

Choose a reason for hiding this comment

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

Good point. 👍 We can always follow-up with a broad sweep. 🧹

Copy link
Contributor

@ze-flo ze-flo left a comment

Choose a reason for hiding this comment

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

Great job reorganizing the migration docs. 💯

*/
referenceElement?: HTMLElement | null;
/** @ignore Modifies the placement offset from the reference element (internal only) */
offset?: number;
Copy link
Contributor

Choose a reason for hiding this comment

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

❤️

@jzempel jzempel merged commit 85a945f into main Sep 25, 2024
7 checks passed
@jzempel jzempel deleted the jzempel/v9-sweep branch September 25, 2024 21:24
jzempel added a commit to zendeskgarden/website that referenced this pull request Sep 26, 2024
- add dialog arrows to custom trigger color picker examples
- add v9 `<GlobalAlert>` (expires 2025-01-01)
- improve `/components/versions` page with migration/changelog doc links (depends on zendeskgarden/react-components#1929)
- fix `breadcrumb` example anchors (no underline, per design)
- upgrade to v9.0.0-next.27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants