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

feat(core): slot controller ssr hint attributes #2893

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
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
Prev Previous commit
fix(core): ssr-hint-has-default-slotted attr name
bennypowers committed Jan 30, 2025

Verified

This commit was created on github.com and signed with GitHub’s verified signature.
commit 9f5ecaa4d03eaffd34157dea7c02f9ff9bfb575f
2 changes: 1 addition & 1 deletion core/pfe-core/controllers/slot-controller-server.ts
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ export class SlotController implements SlotControllerPublicAPI {

static attribute = 'ssr-hint-has-slotted' as const;

static anonymousAttribute = 'ssr-hint-has-slotted-anonymous' as const;
static anonymousAttribute = 'ssr-hint-has-default-slotted' as const;

constructor(public host: ReactiveElement, ..._: SlotControllerArgs) {
host.addController(this);
2 changes: 1 addition & 1 deletion elements/pf-card/test/pf-card.e2e.ts
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ test.describe(tagName, () => {
browser,
importSpecifiers: [`@patternfly/elements/${tagName}/${tagName}.js`],
demoContent: /* html */ `
<pf-card ssr-hint-has-slotted="header,default,footer">
<pf-card ssr-hint-has-default-slotted ssr-hint-has-slotted="header,footer">
<h2 slot="header">Header</h2>
<span>Body</span>
<span slot="footer">Footer</span>