Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/mean-kangaroos-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/polaris': patch
---

Updated Frame to only apply rounded Frame when passed a `topBar`
14 changes: 0 additions & 14 deletions polaris-react/src/components/AppProvider/AppProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,6 @@ export class AppProvider extends Component<AppProviderProps, State> {
const {i18n, linkComponent} = this.props;

this.setRootAttributes();
/* Temporary for dynamicTopBarAndReframe feature. Remove when feature flag is removed. */
this.setBodyStyles();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moving changes from https://github.com/Shopify/polaris/pull/11846/files#diff-a7232fda7d9031ace7080a5155b4ddb352a1c6fdd5b75d0361a22b747f80be54 to Frame so I can conditionally apply based on the topBar prop.


if (i18n === prevI18n && linkComponent === prevLinkComponent) {
return;
Expand All @@ -152,20 +150,8 @@ export class AppProvider extends Component<AppProviderProps, State> {
}

setBodyStyles = () => {
const {features} = this.props;

document.body.style.backgroundColor = 'var(--p-color-bg)';
document.body.style.color = 'var(--p-color-text)';

/* Temporary for dynamicTopBarAndReframe feature.
* Remove when feature flag is removed and apply
* styles directly to body in the global stylesheet.
*/
if (features?.dynamicTopBarAndReframe) {
document.body.style.overflow = 'hidden';
} else {
document.body.style.overflow = '';
}
};

setRootAttributes = () => {
Expand Down
Loading