8000 fix(content): actually remove root, update content selector by mcoker Β· Pull Request #7074 Β· patternfly/patternfly Β· GitHub
[go: up one dir, main page]

Skip to content

fix(content): actually remove root, update content selector#7074

Merged
mcoker merged 2 commits intopatternfly:mainfrom
mcoker:remote-root-content-update
Sep 16, 2024
Merged

fix(content): actually remove root, update content selector#7074
mcoker merged 2 commits intopatternfly:mainfrom
mcoker:remote-root-content-update

Conversation

@mcoker
Copy link
Contributor
@mcoker mcoker commented Sep 13, 2024

Looks like I forgot to commit removing :root in #7060 πŸ€¦β€β™‚οΈ And there was an update to the content component I was still working out, so made that, too.

Here's the backstop report. From what I can tell, everything is a false positive or related to previous updates.

@mcoker mcoker requested a review from mattnolting September 13, 2024 01:33
Comment on lines -8 to +9
{{> @partial-block newcontext}}
{{> @partial-block content--element--IsPlain=reset}}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Lets context pass (particularly interested in content--element--IsEditorial) but resets content--element--IsPlain, which doesn't need to pass through - it's just used for lists.

@patternfly-build
Copy link
Collaborator
patternfly-build commented Sep 13, 2024

@use '../../sass-utilities' as *;

@include pf-root($content) {
@include pf-root(':root', false) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since we support .pf-v6-c-content--[all content elements] as a standalone class, outside of .pf-v6-c-content now, these vars need to be accessible outside of .pf-v6-c-content. Originally I had changed this to [class*="pf-v6-c-content"] but that won't work with user overrides since we'll be resetting the variables for each of those classes. So maybe content can be an exception and continue to scope its vars to :root?

Copy link
Collaborator
@mattnolting mattnolting left a comment

Choose a reason for hiding this comment

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

This LGTM πŸ’·

Copy link
Member
@srambach srambach left a comment

Choose a reason for hiding this comment

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

🫚 lgtm, let's roll

@mcoker mcoker merged commit 514aa1d into patternfly:main Sep 16, 2024
@patternfly-build
Copy link
Collaborator

πŸŽ‰ This PR is included in version 6.0.0-prerelease.13 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

{"resolvedServerColorMode":"day"}
0