spectrum-web-components
spectrum-web-components copied to clipboard
Implement `sp-table` component
Expected Behaviour
We shouldn't have to rely on Spectrum CSS directly for our documentation site. We're pointing to the table
sheet, we should have a component or a pattern that supports including that in a page easily.
Actual Behaviour
https://opensource.adobe.com/spectrum-css/table.html
Review pre-1.0.
@Westbrook I am also looking to use a Spectrum table and will have to rely on the Spectrum CSS for now. If you rely on the Spectrum CSS for the table directly, is the interop still good between Spectrum Web Components and the table? I am afraid of CSS clashing or other unforeseen issues. Just wondering what your experience has been so far.
@lastmjs there should be no trouble implementing something in Spectrum CSS inline with things shipped via SWC. You would benefit from ensuring that the version of the Spectrum CSS package you are leveraging depends on the same Spectrum CSS Vars package that is leveraged in <sp-theme>
, assuming you use that, in order to make sure there are no subtle rendering bugs, but other than that, you should be good to go.
We are just beginning work with a team that intends to consumer the sp-table
pattern, so hopefully we'll also have an update on SWC native support for this pattern, soon.
Cheers!
I'm super excited for sp-table
! Once that is implemented we might make a full switch over. Thanks!