Skip to content

Conversation

@zakwarsame
Copy link
Contributor

@zakwarsame zakwarsame commented Apr 12, 2023

WHY are these changes introduced?

Resolves https://github.com/Shopify/core-workflows/issues/881
Follow up to: #8856

Part of Commerce Components by Shopify; which requires some customization to the user menu

WHAT is this pull request doing?

Topbar.UserMenu: Allow a custom activatorContent prop to be passed enabling customization of the order of the avatar and heading.

ActionList: title is updated to accept a React.Node instead of string.

How to 🎩

  • Spin URL
    • Notice how we're able to pass a custom activator with a squared avatar, and a different text style
    • The title "Test User" is also customized to use a different style. Passing just a string would still have the original style.

🎩 checklist

@github-actions
Copy link
Contributor

github-actions bot commented Apr 12, 2023

size-limit report 📦

Path Size
polaris-react-cjs 240.45 KB (+0.02% 🔺)
polaris-react-esm 156.67 KB (+0.03% 🔺)
polaris-react-esnext 218.86 KB (+0.02% 🔺)
polaris-react-css 47.22 KB (+0.01% 🔺)

@zakwarsame
Copy link
Contributor Author

/snapit

@github-actions
Copy link
Contributor

🫰✨ Thanks @zakwarsame! Your snapshots have been published to npm.

Test the snapshots by updating your package.json with the newly published versions:

yarn add @shopify/polaris-cli@0.0.0-snapshot-release-20230412220453
yarn add @shopify/polaris-icons@0.0.0-snapshot-release-20230412220453
yarn add @shopify/polaris@0.0.0-snapshot-release-20230412220453

@zakwarsame zakwarsame self-assigned this Apr 13, 2023
Copy link
Member

@kyledurand kyledurand left a comment

Choose a reason for hiding this comment

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

Looks good! Can you add a story for the custom activator? Also I really think we should just call the prop activator and leave it optional. That should be straightforward enough to consumers

/** A callback function to handle opening and closing the user menu */
onToggle(): void;
/** A custom activator that can be used when the default activator is not desired */
customActivator?: React.ReactNode;
Copy link
Member

Choose a reason for hiding this comment

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

Can we just name this activator?

Copy link
Member

Choose a reason for hiding this comment

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

I think since the majority of the props map to the built-in activator, it might be confusing (name, avatar, accessibilityLabel, initials, detail) since the other components with an activator prop don't render their own internally.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agree ^. Also, there's a default activator already; passing a new one would be customizing it.

Copy link
Member

Choose a reason for hiding this comment

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

Fair enough! We do have a custom activator on the Sheet component which follows the activator? but it works slightly differently and is also a deprecated component so I'm fine with setting a new standard here

Copy link
Member

@chloerice chloerice Apr 13, 2023

Choose a reason for hiding this comment

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

Oh I thought Sheet's activator prop was analogous to Modal's 👀. In any case, bringing the related convo from other PR here:

@chloerice 6 hours ago
Are all user menus going to have the store switcher eventually instead of the Stores action list item that links out to an identity page? If not, should this use case be documented as its own story since it's unique to merchants who have the store switcher?

@zakwarsame 4 hours ago
Yup! Our https://github.com/Shopify/core-workflows/issues/881 aims to roll out the new store switcher to all our merchants except Plus, who have a separate nav.

Ah okay! In that case, should we:

  • Make this a layout change internal to the component instead of adding a customActivator prop, since the pattern is being updated across the board?
  • Add an optional logo prop that renders a Thumbnail to the right of the name (instead of an avatar on the left) when provided, and make initials optional?

Copy link
Contributor Author

@zakwarsame zakwarsame Apr 14, 2023

Choose a reason for hiding this comment

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

@chloerice

Make this a layout change internal to the component instead of adding a customActivator prop, since the pattern is being updated across the board?

Making it an internal layout change is a good idea. Although I think we still need the customActivator prop because the release for the store switcher change is set for Editions; and also, Plus stores will not have their layout changed even after the release.

Add an optional logo prop that renders a Thumbnail to the right of the name (instead of an avatar on the left) when provided, and make initials optional?

I think this depends on how much flexibility we'll want in Polaris. We can allow for both of them to be optional in a prefix / suffix type of way like we do in ActionList. On the other hand if we want to be stricter, we can just use one internal layout, and then allow the customActivator prop for the other one-off situations. For this case the avatar prop already acts as a logo since it takes in a url that can be passed to the Avatar component.

Copy link
Member

Choose a reason for hiding this comment

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

Sounds like what you have is th ebest way to move forward 💯

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you! FYI, I've made the new layout change internal and will temporarily pass in the old activator as customActivator until launch.

@zakwarsame zakwarsame merged commit 500eed6 into main Apr 17, 2023
@zakwarsame zakwarsame deleted the usermenu/accmenu branch April 17, 2023 15:29
@laurkim laurkim mentioned this pull request Apr 17, 2023
5 tasks
laurkim added a commit that referenced this pull request Apr 17, 2023
### WHY are these changes introduced?

The `TopBar` `Menu` height was changed to always be fullHeight in a
prior [PR](#8953). A test
checking for a `false` value on `fullHeight` was causing CI to fail.

### WHAT is this pull request doing?

Updates `TopBar` `Menu` test.

### How to 🎩

🖥 [Local development
instructions](https://github.com/Shopify/polaris/blob/main/README.md#local-development)
🗒 [General tophatting
guidelines](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md)
📄 [Changelog
guidelines](https://github.com/Shopify/polaris/blob/main/.github/CONTRIBUTING.md#changelog)

### 🎩 checklist

- [ ] Tested on
[mobile](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md#cross-browser-testing)
- [ ] Tested on [multiple
browsers](https://help.shopify.com/en/manual/shopify-admin/supported-browsers)
- [ ] Tested for
[accessibility](https://github.com/Shopify/polaris/blob/main/documentation/Accessibility%20testing.md)
- [ ] Updated the component's `README.md` with documentation changes
- [ ] [Tophatted
documentation](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting%20documentation.md)
changes in the style guide
chloerice pushed a commit that referenced this pull request Apr 17, 2023
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @shopify/polaris-icons@7.0.0

### Major Changes

- [#8919](#8919)
[`7349d4108`](7349d41)
Thanks [@skparkk](https://github.com/skparkk)! - Added new keyboard
major + minor icons

### Minor Changes

- [#8924](#8924)
[`4880e3ed7`](4880e3e)
Thanks [@Tal87](https://github.com/tal87)! - Added PersonalizedTextMajor
icon


- [#8861](#8861)
[`2bc90503d`](2bc9050)
Thanks [@AlejandroE](https://github.com/AlejandroE)! - Added
ExploreImagesMajor

## @shopify/stylelint-polaris@10.0.0

### Major Changes

- [#8973](#8973)
[`f1a3ad756`](f1a3ad7)
Thanks [@lgriffee](https://github.com/lgriffee)! - Enabled the
`custom-property-disallowed-list` rule and added deprecated v10 custom
properties.


- [#8455](#8455)
[`80eb3ac55`](80eb3ac)
Thanks [@lgriffee](https://github.com/lgriffee)! - Remove deprecated v8
custom properties, functions, mixins, and mixin maps from
stylelint-polaris

### Minor Changes

- [#8968](#8968)
[`dbe68efb4`](dbe68ef)
Thanks [@aaronccasanova](https://github.com/aaronccasanova)! - Added
`custom-property-disallowed-list` rule

## @shopify/polaris@10.44.0

### Minor Changes

- [#8936](#8936)
[`a2c9b1d24`](a2c9b1d)
Thanks [@alex-page](https://github.com/alex-page)! - Renamed Inline to
HorizontalStack


- [#8773](#8773)
[`e8c5a2243`](e8c5a22)
Thanks [@stefanlegg](https://github.com/stefanlegg)! - - Added an
optional `onSpinnerChange` prop to`TextField`
    -   Added an optional `largeStep` prop to `TextField`
- Added `TextField` `Spinner` keypress interactions for Home, End, Page
Up, Page Down


- [#8876](#8876)
[`090d09683`](090d096)
Thanks [@mrcthms](https://github.com/mrcthms)! - Updated `IndexFilters`
to support hiding both filters and search field


- [#8973](#8973)
[`f1a3ad756`](f1a3ad7)
Thanks [@lgriffee](https://github.com/lgriffee)! - Enabled the
`custom-property-disallowed-list` rule and added deprecated v10 custom
properties.


- [#8937](#8937)
[`fcc543928`](fcc5439)
Thanks [@alex-page](https://github.com/alex-page)! - Renamed `Columns`
to `HorizontalGrid`


- [#8938](#8938)
[`289dce569`](289dce5)
Thanks [@alex-page](https://github.com/alex-page)! - Remove deprecation
from `Grid` component


- [#8935](#8935)
[`7f3053342`](7f30533)
Thanks [@alex-page](https://github.com/alex-page)! - Renamed
`AlphaStack` to `VerticalStack`


- [#8596](#8596)
[`421bb49dc`](421bb49)
Thanks [@brendanrygus](https://github.com/brendanrygus)! - [Frame] Fix
minimum height overflowing in iOS Webkit browsers


- [#8953](#8953)
[`500eed660`](500eed6)
Thanks [@zakwarsame](https://github.com/zakwarsame)! - - Added
`customActivator` prop to `TopBar.UserMenu`
- Added support for setting a `ReactNode` on `ActionList` `Section`
`title`

### Patch Changes

- [#8842](#8842)
[`bd64fa583`](bd64fa5)
Thanks [@martenbjork](https://github.com/martenbjork)! - Removed the
Exiting animation state from Popovers, causing them to close immediately
instead of after a 100ms delay.


- [#8913](#8913)
[`261355f07`](261355f)
Thanks [@mrcthms](https://github.com/mrcthms)! - Tweaked the vertical
alignment of elements within the `AlphaFilters` component


- [#8954](#8954)
[`f9366c22d`](f9366c2)
Thanks [@laurkim](https://github.com/laurkim)! - Updated custom property
names to align with new component names for `HorizontalGrid`,
`HorizontalStack`, and `VerticalStack`


- [#8912](#8912)
[`1cc47495a`](1cc4749)
Thanks [@mrcthms](https://github.com/mrcthms)! - Updated `BulkActions`
to include wrapping tooltip on Popover activator

- Updated dependencies
\[[`4880e3ed7`](4880e3e),
[`7349d4108`](7349d41),
[`2bc90503d`](2bc9050)]:
    -   @shopify/polaris-icons@7.0.0

## @shopify/polaris-cli@0.1.28

### Patch Changes

-   Updated dependencies \[]:
    -   @shopify/polaris-migrator@0.17.2

## @shopify/polaris-codemods@0.0.3

### Patch Changes

- Updated dependencies
\[[`f1a3ad756`](f1a3ad7),
[`80eb3ac55`](80eb3ac),
[`dbe68efb4`](dbe68ef)]:
    -   @shopify/stylelint-polaris@10.0.0

## @shopify/polaris-migrator@0.17.2

### Patch Changes

- Updated dependencies
\[[`f1a3ad756`](f1a3ad7),
[`80eb3ac55`](80eb3ac),
[`dbe68efb4`](dbe68ef)]:
    -   @shopify/stylelint-polaris@10.0.0

## polaris.shopify.com@0.49.0

### Minor Changes

- [#8876](#8876)
[`090d09683`](090d096)
Thanks [@mrcthms](https://github.com/mrcthms)! - Updated `IndexFilters`
to support hiding both filters and search field


- [#8973](#8973)
[`f1a3ad756`](f1a3ad7)
Thanks [@lgriffee](https://github.com/lgriffee)! - Enabled the
`custom-property-disallowed-list` rule and added deprecated v10 custom
properties.


- [#8967](#8967)
[`45d978e7b`](45d978e)
Thanks [@lgriffee](https://github.com/lgriffee)! - Added a version
matchup table to `stylelint-polaris` documentation


- [#8986](#8986)
[`f70f586ee`](f70f586)
Thanks [@laurkim](https://github.com/laurkim)! - Added documentation for
the `react-rename-component` codemod


- [#8935](#8935)
[`7f3053342`](7f30533)
Thanks [@alex-page](https://github.com/alex-page)! - Renamed
`AlphaStack` to `VerticalStack`


- [#8920](#8920)
[`2bad4e305`](2bad4e3)
Thanks [@kyledurand](https://github.com/kyledurand)! - Added copy button
to markdown headings with ids

### Patch Changes

- [#8915](#8915)
[`c8a130caf`](c8a130c)
Thanks [@kyledurand](https://github.com/kyledurand)! - Added
scroll-margin-top to anchor links to prevent top bar overlay


- [#8455](#8455)
[`80eb3ac55`](80eb3ac)
Thanks [@lgriffee](https://github.com/lgriffee)! - Remove deprecated v8
custom properties, functions, mixins, and mixin maps from
stylelint-polaris

- Updated dependencies
\[[`a2c9b1d24`](a2c9b1d),
[`e8c5a2243`](e8c5a22),
[`090d09683`](090d096),
[`bd64fa583`](bd64fa5),
[`f1a3ad756`](f1a3ad7),
[`261355f07`](261355f),
[`fcc543928`](fcc5439),
[`4880e3ed7`](4880e3e),
[`7349d4108`](7349d41),
[`2bc90503d`](2bc9050),
[`f9366c22d`](f9366c2),
[`289dce569`](289dce5),
[`7f3053342`](7f30533),
[`421bb49dc`](421bb49),
[`500eed660`](500eed6),
[`1cc47495a`](1cc4749)]:
    -   @shopify/polaris@10.44.0
    -   @shopify/polaris-icons@7.0.0

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
juzser pushed a commit to juzser/polaris that referenced this pull request Jul 27, 2023
…ify#8953)

<!--
  ☝️How to write a good PR title:
- Prefix it with [ComponentName] (if applicable), for example: [Button]
  - Start with a verb, for example: Add, Delete, Improve, Fix…
  - Give as much context as necessary and as little as possible
  - Prefix it with [WIP] while it’s a work in progress
-->

### WHY are these changes introduced?

Resolves https://github.com/Shopify/core-workflows/issues/881
Follow up to: Shopify#8856

<!--
  Context about the problem that’s being addressed.
-->

Part of [Commerce Components by
Shopify](https://www.shopify.com/commerce-components); which requires
some customization to the user menu

### WHAT is this pull request doing?

`Topbar.UserMenu`: Allow a custom `activatorContent` prop to be passed
enabling us to customize the order of the avatar and heading.
  <details>
  <summary> Expand to see before/after </summary>

  | Before  | After |
  | ------------ |:-------------:|
| ![screenshot](https://screenshot.click/04-05-8916-74093.png) |
![Screenshot](https://screenshot.click/04-07-74275-4681.png) |
  </details>

`ActionList`: `title` is updated to accept a `React.Node` instead of
string.
  <details>

  <summary>Expand for screenshot </summary>

  ![screenshot](https://screenshot.click/04-28-23847-78491.png)
  </details>


<!--
  Summary of the changes committed.

Before / after screenshots are appreciated for UI changes. Make sure to
include alt text that describes the screenshot.

If you include an animated gif showing your change, wrapping it in a
details tag is recommended. Gifs usually autoplay, which can cause
accessibility issues for people reviewing your PR:

    <details>
      <summary>Summary of your gif(s)</summary>
      <img src="..." alt="Description of what the gif shows">
    </details>
-->

<!-- ℹ️ Delete the following for small / trivial changes -->

### How to 🎩
<!--
  Give as much information as needed to experiment with the component
  in the playground.
-->

- [Spin
URL](https://admin.web.acc-menu.zakaria-warsame.us.spin.dev/store/shop1)
- Notice how we're able to pass a custom activator with a squared
avatar, and a different text style
- The `title` "Test User" is also customized to use a different style.
Passing just a string would still have the original style.

### 🎩 checklist

- [x] Tested on
[mobile](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md#cross-browser-testing)
- [x] Tested on [multiple
browsers](https://help.shopify.com/en/manual/shopify-admin/supported-browsers)
- [x] Tested for
[accessibility](https://github.com/Shopify/polaris/blob/main/documentation/Accessibility%20testing.md)
- [x] Updated the component's `README.md` with documentation changes
- [x] [Tophatted
documentation](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting%20documentation.md)
changes in the style guide

---------

Co-authored-by: Kyle Durand <kyledurand@users.noreply.github.com>
juzser pushed a commit to juzser/polaris that referenced this pull request Jul 27, 2023
### WHY are these changes introduced?

The `TopBar` `Menu` height was changed to always be fullHeight in a
prior [PR](Shopify#8953). A test
checking for a `false` value on `fullHeight` was causing CI to fail.

### WHAT is this pull request doing?

Updates `TopBar` `Menu` test.

### How to 🎩

🖥 [Local development
instructions](https://github.com/Shopify/polaris/blob/main/README.md#local-development)
🗒 [General tophatting
guidelines](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md)
📄 [Changelog
guidelines](https://github.com/Shopify/polaris/blob/main/.github/CONTRIBUTING.md#changelog)

### 🎩 checklist

- [ ] Tested on
[mobile](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md#cross-browser-testing)
- [ ] Tested on [multiple
browsers](https://help.shopify.com/en/manual/shopify-admin/supported-browsers)
- [ ] Tested for
[accessibility](https://github.com/Shopify/polaris/blob/main/documentation/Accessibility%20testing.md)
- [ ] Updated the component's `README.md` with documentation changes
- [ ] [Tophatted
documentation](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting%20documentation.md)
changes in the style guide
juzser pushed a commit to juzser/polaris that referenced this pull request Jul 27, 2023
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @shopify/polaris-icons@7.0.0

### Major Changes

- [Shopify#8919](Shopify#8919)
[`7349d4108`](Shopify@7349d41)
Thanks [@skparkk](https://github.com/skparkk)! - Added new keyboard
major + minor icons

### Minor Changes

- [Shopify#8924](Shopify#8924)
[`4880e3ed7`](Shopify@4880e3e)
Thanks [@Tal87](https://github.com/tal87)! - Added PersonalizedTextMajor
icon


- [Shopify#8861](Shopify#8861)
[`2bc90503d`](Shopify@2bc9050)
Thanks [@AlejandroE](https://github.com/AlejandroE)! - Added
ExploreImagesMajor

## @shopify/stylelint-polaris@10.0.0

### Major Changes

- [Shopify#8973](Shopify#8973)
[`f1a3ad756`](Shopify@f1a3ad7)
Thanks [@lgriffee](https://github.com/lgriffee)! - Enabled the
`custom-property-disallowed-list` rule and added deprecated v10 custom
properties.


- [Shopify#8455](Shopify#8455)
[`80eb3ac55`](Shopify@80eb3ac)
Thanks [@lgriffee](https://github.com/lgriffee)! - Remove deprecated v8
custom properties, functions, mixins, and mixin maps from
stylelint-polaris

### Minor Changes

- [Shopify#8968](Shopify#8968)
[`dbe68efb4`](Shopify@dbe68ef)
Thanks [@aaronccasanova](https://github.com/aaronccasanova)! - Added
`custom-property-disallowed-list` rule

## @shopify/polaris@10.44.0

### Minor Changes

- [Shopify#8936](Shopify#8936)
[`a2c9b1d24`](Shopify@a2c9b1d)
Thanks [@alex-page](https://github.com/alex-page)! - Renamed Inline to
HorizontalStack


- [Shopify#8773](Shopify#8773)
[`e8c5a2243`](Shopify@e8c5a22)
Thanks [@stefanlegg](https://github.com/stefanlegg)! - - Added an
optional `onSpinnerChange` prop to`TextField`
    -   Added an optional `largeStep` prop to `TextField`
- Added `TextField` `Spinner` keypress interactions for Home, End, Page
Up, Page Down


- [Shopify#8876](Shopify#8876)
[`090d09683`](Shopify@090d096)
Thanks [@mrcthms](https://github.com/mrcthms)! - Updated `IndexFilters`
to support hiding both filters and search field


- [Shopify#8973](Shopify#8973)
[`f1a3ad756`](Shopify@f1a3ad7)
Thanks [@lgriffee](https://github.com/lgriffee)! - Enabled the
`custom-property-disallowed-list` rule and added deprecated v10 custom
properties.


- [Shopify#8937](Shopify#8937)
[`fcc543928`](Shopify@fcc5439)
Thanks [@alex-page](https://github.com/alex-page)! - Renamed `Columns`
to `HorizontalGrid`


- [Shopify#8938](Shopify#8938)
[`289dce569`](Shopify@289dce5)
Thanks [@alex-page](https://github.com/alex-page)! - Remove deprecation
from `Grid` component


- [Shopify#8935](Shopify#8935)
[`7f3053342`](Shopify@7f30533)
Thanks [@alex-page](https://github.com/alex-page)! - Renamed
`AlphaStack` to `VerticalStack`


- [Shopify#8596](Shopify#8596)
[`421bb49dc`](Shopify@421bb49)
Thanks [@brendanrygus](https://github.com/brendanrygus)! - [Frame] Fix
minimum height overflowing in iOS Webkit browsers


- [Shopify#8953](Shopify#8953)
[`500eed660`](Shopify@500eed6)
Thanks [@zakwarsame](https://github.com/zakwarsame)! - - Added
`customActivator` prop to `TopBar.UserMenu`
- Added support for setting a `ReactNode` on `ActionList` `Section`
`title`

### Patch Changes

- [Shopify#8842](Shopify#8842)
[`bd64fa583`](Shopify@bd64fa5)
Thanks [@martenbjork](https://github.com/martenbjork)! - Removed the
Exiting animation state from Popovers, causing them to close immediately
instead of after a 100ms delay.


- [Shopify#8913](Shopify#8913)
[`261355f07`](Shopify@261355f)
Thanks [@mrcthms](https://github.com/mrcthms)! - Tweaked the vertical
alignment of elements within the `AlphaFilters` component


- [Shopify#8954](Shopify#8954)
[`f9366c22d`](Shopify@f9366c2)
Thanks [@laurkim](https://github.com/laurkim)! - Updated custom property
names to align with new component names for `HorizontalGrid`,
`HorizontalStack`, and `VerticalStack`


- [Shopify#8912](Shopify#8912)
[`1cc47495a`](Shopify@1cc4749)
Thanks [@mrcthms](https://github.com/mrcthms)! - Updated `BulkActions`
to include wrapping tooltip on Popover activator

- Updated dependencies
\[[`4880e3ed7`](Shopify@4880e3e),
[`7349d4108`](Shopify@7349d41),
[`2bc90503d`](Shopify@2bc9050)]:
    -   @shopify/polaris-icons@7.0.0

## @shopify/polaris-cli@0.1.28

### Patch Changes

-   Updated dependencies \[]:
    -   @shopify/polaris-migrator@0.17.2

## @shopify/polaris-codemods@0.0.3

### Patch Changes

- Updated dependencies
\[[`f1a3ad756`](Shopify@f1a3ad7),
[`80eb3ac55`](Shopify@80eb3ac),
[`dbe68efb4`](Shopify@dbe68ef)]:
    -   @shopify/stylelint-polaris@10.0.0

## @shopify/polaris-migrator@0.17.2

### Patch Changes

- Updated dependencies
\[[`f1a3ad756`](Shopify@f1a3ad7),
[`80eb3ac55`](Shopify@80eb3ac),
[`dbe68efb4`](Shopify@dbe68ef)]:
    -   @shopify/stylelint-polaris@10.0.0

## polaris.shopify.com@0.49.0

### Minor Changes

- [Shopify#8876](Shopify#8876)
[`090d09683`](Shopify@090d096)
Thanks [@mrcthms](https://github.com/mrcthms)! - Updated `IndexFilters`
to support hiding both filters and search field


- [Shopify#8973](Shopify#8973)
[`f1a3ad756`](Shopify@f1a3ad7)
Thanks [@lgriffee](https://github.com/lgriffee)! - Enabled the
`custom-property-disallowed-list` rule and added deprecated v10 custom
properties.


- [Shopify#8967](Shopify#8967)
[`45d978e7b`](Shopify@45d978e)
Thanks [@lgriffee](https://github.com/lgriffee)! - Added a version
matchup table to `stylelint-polaris` documentation


- [Shopify#8986](Shopify#8986)
[`f70f586ee`](Shopify@f70f586)
Thanks [@laurkim](https://github.com/laurkim)! - Added documentation for
the `react-rename-component` codemod


- [Shopify#8935](Shopify#8935)
[`7f3053342`](Shopify@7f30533)
Thanks [@alex-page](https://github.com/alex-page)! - Renamed
`AlphaStack` to `VerticalStack`


- [Shopify#8920](Shopify#8920)
[`2bad4e305`](Shopify@2bad4e3)
Thanks [@kyledurand](https://github.com/kyledurand)! - Added copy button
to markdown headings with ids

### Patch Changes

- [Shopify#8915](Shopify#8915)
[`c8a130caf`](Shopify@c8a130c)
Thanks [@kyledurand](https://github.com/kyledurand)! - Added
scroll-margin-top to anchor links to prevent top bar overlay


- [Shopify#8455](Shopify#8455)
[`80eb3ac55`](Shopify@80eb3ac)
Thanks [@lgriffee](https://github.com/lgriffee)! - Remove deprecated v8
custom properties, functions, mixins, and mixin maps from
stylelint-polaris

- Updated dependencies
\[[`a2c9b1d24`](Shopify@a2c9b1d),
[`e8c5a2243`](Shopify@e8c5a22),
[`090d09683`](Shopify@090d096),
[`bd64fa583`](Shopify@bd64fa5),
[`f1a3ad756`](Shopify@f1a3ad7),
[`261355f07`](Shopify@261355f),
[`fcc543928`](Shopify@fcc5439),
[`4880e3ed7`](Shopify@4880e3e),
[`7349d4108`](Shopify@7349d41),
[`2bc90503d`](Shopify@2bc9050),
[`f9366c22d`](Shopify@f9366c2),
[`289dce569`](Shopify@289dce5),
[`7f3053342`](Shopify@7f30533),
[`421bb49dc`](Shopify@421bb49),
[`500eed660`](Shopify@500eed6),
[`1cc47495a`](Shopify@1cc4749)]:
    -   @shopify/polaris@10.44.0
    -   @shopify/polaris-icons@7.0.0

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
AnnaCheba pushed a commit to AnnaCheba/polaris that referenced this pull request Apr 22, 2024
…ify#8953)

<!--
  ☝️How to write a good PR title:
- Prefix it with [ComponentName] (if applicable), for example: [Button]
  - Start with a verb, for example: Add, Delete, Improve, Fix…
  - Give as much context as necessary and as little as possible
  - Prefix it with [WIP] while it’s a work in progress
-->

### WHY are these changes introduced?

Resolves https://github.com/Shopify/core-workflows/issues/881
Follow up to: Shopify#8856

<!--
  Context about the problem that’s being addressed.
-->

Part of [Commerce Components by
Shopify](https://www.shopify.com/commerce-components); which requires
some customization to the user menu

### WHAT is this pull request doing?

`Topbar.UserMenu`: Allow a custom `activatorContent` prop to be passed
enabling us to customize the order of the avatar and heading.
  <details>
  <summary> Expand to see before/after </summary>

  | Before  | After |
  | ------------ |:-------------:|
| ![screenshot](https://screenshot.click/04-05-8916-74093.png) |
![Screenshot](https://screenshot.click/04-07-74275-4681.png) |
  </details>

`ActionList`: `title` is updated to accept a `React.Node` instead of
string.
  <details>

  <summary>Expand for screenshot </summary>

  ![screenshot](https://screenshot.click/04-28-23847-78491.png)
  </details>


<!--
  Summary of the changes committed.

Before / after screenshots are appreciated for UI changes. Make sure to
include alt text that describes the screenshot.

If you include an animated gif showing your change, wrapping it in a
details tag is recommended. Gifs usually autoplay, which can cause
accessibility issues for people reviewing your PR:

    <details>
      <summary>Summary of your gif(s)</summary>
      <img src="..." alt="Description of what the gif shows">
    </details>
-->

<!-- ℹ️ Delete the following for small / trivial changes -->

### How to 🎩
<!--
  Give as much information as needed to experiment with the component
  in the playground.
-->

- [Spin
URL](https://admin.web.acc-menu.zakaria-warsame.us.spin.dev/store/shop1)
- Notice how we're able to pass a custom activator with a squared
avatar, and a different text style
- The `title` "Test User" is also customized to use a different style.
Passing just a string would still have the original style.

### 🎩 checklist

- [x] Tested on
[mobile](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md#cross-browser-testing)
- [x] Tested on [multiple
browsers](https://help.shopify.com/en/manual/shopify-admin/supported-browsers)
- [x] Tested for
[accessibility](https://github.com/Shopify/polaris/blob/main/documentation/Accessibility%20testing.md)
- [x] Updated the component's `README.md` with documentation changes
- [x] [Tophatted
documentation](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting%20documentation.md)
changes in the style guide

---------

Co-authored-by: Kyle Durand <kyledurand@users.noreply.github.com>
ascherkus pushed a commit to ascherkus/polaris that referenced this pull request Feb 19, 2025
### WHY are these changes introduced?

The `TopBar` `Menu` height was changed to always be fullHeight in a
prior [PR](Shopify#8953). A test
checking for a `false` value on `fullHeight` was causing CI to fail.

### WHAT is this pull request doing?

Updates `TopBar` `Menu` test.

### How to 🎩

🖥 [Local development
instructions](https://github.com/Shopify/polaris/blob/main/README.md#local-development)
🗒 [General tophatting
guidelines](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md)
📄 [Changelog
guidelines](https://github.com/Shopify/polaris/blob/main/.github/CONTRIBUTING.md#changelog)

### 🎩 checklist

- [ ] Tested on
[mobile](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md#cross-browser-testing)
- [ ] Tested on [multiple
browsers](https://help.shopify.com/en/manual/shopify-admin/supported-browsers)
- [ ] Tested for
[accessibility](https://github.com/Shopify/polaris/blob/main/documentation/Accessibility%20testing.md)
- [ ] Updated the component's `README.md` with documentation changes
- [ ] [Tophatted
documentation](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting%20documentation.md)
changes in the style guide
ascherkus pushed a commit to ascherkus/polaris that referenced this pull request Feb 19, 2025
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @shopify/polaris-icons@7.0.0

### Major Changes

- [Shopify#8919](Shopify#8919)
[`7349d4108`](Shopify@e29f62e)
Thanks [@skparkk](https://github.com/skparkk)! - Added new keyboard
major + minor icons

### Minor Changes

- [Shopify#8924](Shopify#8924)
[`4880e3ed7`](Shopify@1ad1a62)
Thanks [@Tal87](https://github.com/tal87)! - Added PersonalizedTextMajor
icon


- [Shopify#8861](Shopify#8861)
[`2bc90503d`](Shopify@3dc9640)
Thanks [@AlejandroE](https://github.com/AlejandroE)! - Added
ExploreImagesMajor

## @shopify/stylelint-polaris@10.0.0

### Major Changes

- [Shopify#8973](Shopify#8973)
[`f1a3ad756`](Shopify@05d41ad)
Thanks [@lgriffee](https://github.com/lgriffee)! - Enabled the
`custom-property-disallowed-list` rule and added deprecated v10 custom
properties.


- [Shopify#8455](Shopify#8455)
[`80eb3ac55`](Shopify@cc8c04e)
Thanks [@lgriffee](https://github.com/lgriffee)! - Remove deprecated v8
custom properties, functions, mixins, and mixin maps from
stylelint-polaris

### Minor Changes

- [Shopify#8968](Shopify#8968)
[`dbe68efb4`](Shopify@af07125)
Thanks [@aaronccasanova](https://github.com/aaronccasanova)! - Added
`custom-property-disallowed-list` rule

## @shopify/polaris@10.44.0

### Minor Changes

- [Shopify#8936](Shopify#8936)
[`a2c9b1d24`](Shopify@085d3f7)
Thanks [@alex-page](https://github.com/alex-page)! - Renamed Inline to
HorizontalStack


- [Shopify#8773](Shopify#8773)
[`e8c5a2243`](Shopify@58136bc)
Thanks [@stefanlegg](https://github.com/stefanlegg)! - - Added an
optional `onSpinnerChange` prop to`TextField`
    -   Added an optional `largeStep` prop to `TextField`
- Added `TextField` `Spinner` keypress interactions for Home, End, Page
Up, Page Down


- [Shopify#8876](Shopify#8876)
[`090d09683`](Shopify@7e46d7e)
Thanks [@mrcthms](https://github.com/mrcthms)! - Updated `IndexFilters`
to support hiding both filters and search field


- [Shopify#8973](Shopify#8973)
[`f1a3ad756`](Shopify@05d41ad)
Thanks [@lgriffee](https://github.com/lgriffee)! - Enabled the
`custom-property-disallowed-list` rule and added deprecated v10 custom
properties.


- [Shopify#8937](Shopify#8937)
[`fcc543928`](Shopify@6e0bb48)
Thanks [@alex-page](https://github.com/alex-page)! - Renamed `Columns`
to `HorizontalGrid`


- [Shopify#8938](Shopify#8938)
[`289dce569`](Shopify@6d46f59)
Thanks [@alex-page](https://github.com/alex-page)! - Remove deprecation
from `Grid` component


- [Shopify#8935](Shopify#8935)
[`7f3053342`](Shopify@4ccc28a)
Thanks [@alex-page](https://github.com/alex-page)! - Renamed
`AlphaStack` to `VerticalStack`


- [Shopify#8596](Shopify#8596)
[`421bb49dc`](Shopify@bc813c0)
Thanks [@brendanrygus](https://github.com/brendanrygus)! - [Frame] Fix
minimum height overflowing in iOS Webkit browsers


- [Shopify#8953](Shopify#8953)
[`500eed660`](Shopify@1dc66ee)
Thanks [@zakwarsame](https://github.com/zakwarsame)! - - Added
`customActivator` prop to `TopBar.UserMenu`
- Added support for setting a `ReactNode` on `ActionList` `Section`
`title`

### Patch Changes

- [Shopify#8842](Shopify#8842)
[`bd64fa583`](Shopify@b916015)
Thanks [@martenbjork](https://github.com/martenbjork)! - Removed the
Exiting animation state from Popovers, causing them to close immediately
instead of after a 100ms delay.


- [Shopify#8913](Shopify#8913)
[`261355f07`](Shopify@ee7c076)
Thanks [@mrcthms](https://github.com/mrcthms)! - Tweaked the vertical
alignment of elements within the `AlphaFilters` component


- [Shopify#8954](Shopify#8954)
[`f9366c22d`](Shopify@4345b34)
Thanks [@laurkim](https://github.com/laurkim)! - Updated custom property
names to align with new component names for `HorizontalGrid`,
`HorizontalStack`, and `VerticalStack`


- [Shopify#8912](Shopify#8912)
[`1cc47495a`](Shopify@6d47345)
Thanks [@mrcthms](https://github.com/mrcthms)! - Updated `BulkActions`
to include wrapping tooltip on Popover activator

- Updated dependencies
\[[`4880e3ed7`](Shopify@1ad1a62),
[`7349d4108`](Shopify@e29f62e),
[`2bc90503d`](Shopify@3dc9640)]:
    -   @shopify/polaris-icons@7.0.0

## @shopify/polaris-cli@0.1.28

### Patch Changes

-   Updated dependencies \[]:
    -   @shopify/polaris-migrator@0.17.2

## @shopify/polaris-codemods@0.0.3

### Patch Changes

- Updated dependencies
\[[`f1a3ad756`](Shopify@05d41ad),
[`80eb3ac55`](Shopify@cc8c04e),
[`dbe68efb4`](Shopify@af07125)]:
    -   @shopify/stylelint-polaris@10.0.0

## @shopify/polaris-migrator@0.17.2

### Patch Changes

- Updated dependencies
\[[`f1a3ad756`](Shopify@05d41ad),
[`80eb3ac55`](Shopify@cc8c04e),
[`dbe68efb4`](Shopify@af07125)]:
    -   @shopify/stylelint-polaris@10.0.0

## polaris.shopify.com@0.49.0

### Minor Changes

- [Shopify#8876](Shopify#8876)
[`090d09683`](Shopify@7e46d7e)
Thanks [@mrcthms](https://github.com/mrcthms)! - Updated `IndexFilters`
to support hiding both filters and search field


- [Shopify#8973](Shopify#8973)
[`f1a3ad756`](Shopify@05d41ad)
Thanks [@lgriffee](https://github.com/lgriffee)! - Enabled the
`custom-property-disallowed-list` rule and added deprecated v10 custom
properties.


- [Shopify#8967](Shopify#8967)
[`45d978e7b`](Shopify@ab4bbed)
Thanks [@lgriffee](https://github.com/lgriffee)! - Added a version
matchup table to `stylelint-polaris` documentation


- [Shopify#8986](Shopify#8986)
[`f70f586ee`](Shopify@c488159)
Thanks [@laurkim](https://github.com/laurkim)! - Added documentation for
the `react-rename-component` codemod


- [Shopify#8935](Shopify#8935)
[`7f3053342`](Shopify@4ccc28a)
Thanks [@alex-page](https://github.com/alex-page)! - Renamed
`AlphaStack` to `VerticalStack`


- [Shopify#8920](Shopify#8920)
[`2bad4e305`](Shopify@751027b)
Thanks [@kyledurand](https://github.com/kyledurand)! - Added copy button
to markdown headings with ids

### Patch Changes

- [Shopify#8915](Shopify#8915)
[`c8a130caf`](Shopify@8a81b6a)
Thanks [@kyledurand](https://github.com/kyledurand)! - Added
scroll-margin-top to anchor links to prevent top bar overlay


- [Shopify#8455](Shopify#8455)
[`80eb3ac55`](Shopify@cc8c04e)
Thanks [@lgriffee](https://github.com/lgriffee)! - Remove deprecated v8
custom properties, functions, mixins, and mixin maps from
stylelint-polaris

- Updated dependencies
\[[`a2c9b1d24`](Shopify@085d3f7),
[`e8c5a2243`](Shopify@58136bc),
[`090d09683`](Shopify@7e46d7e),
[`bd64fa583`](Shopify@b916015),
[`f1a3ad756`](Shopify@05d41ad),
[`261355f07`](Shopify@ee7c076),
[`fcc543928`](Shopify@6e0bb48),
[`4880e3ed7`](Shopify@1ad1a62),
[`7349d4108`](Shopify@e29f62e),
[`2bc90503d`](Shopify@3dc9640),
[`f9366c22d`](Shopify@4345b34),
[`289dce569`](Shopify@6d46f59),
[`7f3053342`](Shopify@4ccc28a),
[`421bb49dc`](Shopify@bc813c0),
[`500eed660`](Shopify@1dc66ee),
[`1cc47495a`](Shopify@6d47345)]:
    -   @shopify/polaris@10.44.0
    -   @shopify/polaris-icons@7.0.0

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants