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

Table striped overrides data-theme=light #624

Open
soypat opened this issue Oct 23, 2024 · 1 comment
Open

Table striped overrides data-theme=light #624

soypat opened this issue Oct 23, 2024 · 1 comment

Comments

@soypat
Copy link

soypat commented Oct 23, 2024

Describe the issue

<table class="striped">
    <tbody><style>.log-data0 { padding-left: 0rem; }</style>
    <tr><td data-theme="light"><strong>aaa:</strong></td><td>aaaa</td></tr>
    <tr><td data-theme="light"><strong>aaa:</strong></td><td>aaaa</td></tr>
    <tr data-theme="light"><td ><strong>aaa:</strong></td><td>aaaa</td></tr>
    <tr data-theme="light"><td ><strong>aaa:</strong></td><td>aaaa</td></tr>
    </tbody>
</table>

Current Behavior

A concise description of the bug.
image

Expected Behavior

The light theme being applied correctly.
image

head element:

<head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Mechanical Dirk</title><meta name="viewport" content="width=device-width, initial-scale=1"/><script src="https://unpkg.com/[email protected]" crossorigin="anonymous"></script><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css"/><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.colors.min.css"/><script>
        // https://stackoverflow.com/questions/69364278/handle-errors-with-htmx
        document.body.addEventListener('htmx:beforeOnLoad', function (evt) {
            if (evt.detail.xhr.status === 400 || evt.detail.xhr.status === 500) {
                evt.detail.shouldSwap = true;
                evt.detail.isError = false;
            }
        });
    </script></head>
@Yohn
Copy link

Yohn commented Dec 13, 2024

I'm assuming there was a pull request that fixed this issue that was open, but when I try your table code in a codepen with my PicoCSS Fork I see the expected outcome.

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

No branches or pull requests

2 participants