Skip to content

Integrate baseline-status component#82

Open
schalkneethling wants to merge 2 commits into
web-platform-dx:mainfrom
schalkneethling:15-baseline-status-component-integration
Open

Integrate baseline-status component#82
schalkneethling wants to merge 2 commits into
web-platform-dx:mainfrom
schalkneethling:15-baseline-status-component-integration

Conversation

@schalkneethling

Copy link
Copy Markdown
Contributor

Summary

  • Add the official baseline-status web component dependency and serve its bundled script locally.
  • Render the component on individual feature pages above the existing card grid.
  • Keep the old browser support card as a graceful fallback until the custom element is defined.
  • Add status-aware sizing/background treatment for the component using site CSS variables.

Validation

  • Ran npm run build successfully after rebasing onto current upstream main.
  • Verified generated feature pages include the local component script and feature-id attributes.
  • Browser-checked representative feature pages during implementation for component upgrade/rendering and fallback hiding.

Closes #15

@schalkneethling schalkneethling marked this pull request as ready for review June 14, 2026 11:35
@schalkneethling

Copy link
Copy Markdown
Contributor Author

@captainbrosset resolved the merge conflict.

@captainbrosset

Copy link
Copy Markdown
Contributor

Sorry for the slow reply. I'm not super sold on the idea to use the component. The reason is that it uses runtime JavaScript to retrieve the Baseline status for a feature, whereas the rest of the site is (mostly) JS-free. Most importantly, each feature page contains the entire data about the feature in the HTML, created at build time. I'm very hesitant to move away from this model.

@schalkneethling

Copy link
Copy Markdown
Contributor Author

Sorry for the slow reply. I'm not super sold on the idea to use the component. The reason is that it uses runtime JavaScript to retrieve the Baseline status for a feature, whereas the rest of the site is (mostly) JS-free. Most importantly, each feature page contains the entire data about the feature in the HTML, created at build time. I'm very hesitant to move away from this model.

Makes sense. I was basing this on the two open issues related to this.

Should we perhaps triage those and consider closing them? Also, perhaps it would be worth exploring enhancements to the current design rather than adopting the Baseline component. Thoughts?

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.

Consider using the new baseline-status component

2 participants