Skip to content
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

Sidebar and modal styling fixes #8234

Merged
merged 1 commit into from
Apr 12, 2024
Merged

Sidebar and modal styling fixes #8234

merged 1 commit into from
Apr 12, 2024

Conversation

grahamlangford
Copy link
Collaborator

@grahamlangford grahamlangford commented Apr 12, 2024

What does this PR do?

Demo

  • Font face fix
image
  • opacity fix
image

Checklist

@@ -5,7 +5,10 @@
all: initial;

// Set a font baseline style. Bootstrap targets `body` specifically, which isn't available in a shadow DOM
font: 16px / 1.5 sans-serif;
font:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixes the font issue. Tried to use a variable form _variables.scss, but ran into errors. Probably not worth worrying about since it's unlikely to change.

Copy link
Contributor

@twschiller twschiller Apr 12, 2024

Choose a reason for hiding this comment

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

Could you reference the variable from _variables.scss so we know what it's copied from? Or does the variable not exist yet?

@@ -68,6 +68,7 @@ const IframeModal: React.VFC<{
src={url.href}
title="Modal content"
style={{
all: "initial",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Somehow left out of the previous PR. Fixes the opacity issue

Copy link
Contributor

Choose a reason for hiding this comment

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

This is already part of renderWidget's element. What's the issue here? I don’t think I removed/changed this in that PR

Copy link
Contributor

Choose a reason for hiding this comment

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

We had a visual regression where the site's opacity seemed to be leaking:
image

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh the issue is that my renderWidget PR removed the shadow DOM because it's supposed to only be part of the IsolatedComponent. This week I'll send a PR combining these two new pieces.

@@ -123,7 +123,7 @@ const store = configureStore({
/* eslint-disable unicorn/prefer-spread -- It's not Array#concat, can't use spread */
return getDefaultMiddleware({
...defaultMiddlewareConfig,
immutableCheck: false,
serializableCheck: false,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Makes the Extension Console significantly more performant in dev mode. No impact on production.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

immutable check is already built into the default middleware config

Copy link
Contributor

@twschiller twschiller Apr 12, 2024

Choose a reason for hiding this comment

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

immutable check is already built into the default middleware config

👍 You mean it's already off in the default middleware config?:

const defaultMiddlewareConfig = {

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, that's exactly what I meant

@twschiller twschiller changed the title styling fixes Sidebar and modal styling fixes Apr 12, 2024
@twschiller twschiller added this to the 1.8.13 milestone Apr 12, 2024
@twschiller twschiller self-requested a review April 12, 2024 00:29
Copy link

No loom links were found in the first post. Please add one there if you'd like to it to appear on Slack.

Do not edit this comment manually.

@twschiller twschiller added user experience Improve the user experience (UX) bug Something isn't working labels Apr 12, 2024
@grahamlangford grahamlangford marked this pull request as ready for review April 12, 2024 00:39
@grahamlangford grahamlangford merged commit 6c3e02a into main Apr 12, 2024
36 of 37 checks passed
@grahamlangford grahamlangford deleted the styling-fix branch April 12, 2024 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working regression user experience Improve the user experience (UX)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants