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

Incompatibility with Alpine.js framework #3957

Open
L1feF0rm opened this issue Jan 10, 2025 · 0 comments
Open

Incompatibility with Alpine.js framework #3957

L1feF0rm opened this issue Jan 10, 2025 · 0 comments

Comments

@L1feF0rm
Copy link

L1feF0rm commented Jan 10, 2025

This is about Bulma.

Overview of the problem

This is about the Bulma CSS framework incompatibility with Alpine.js framework
I'm using Bulma version 1.0.3
My browser is: Chrome 131
I am sure this issue is not a duplicate (or at least i could not find a duplicate)

Description

Steps to Reproduce

  1. Use tabs container element with classes tabs and is-toggle (and optionally is-toggle-rounded)
  2. Iterate children using alpinejs x-for and template

Demo

Expected behavior

First tab should have rounded corners

Actual behavior

First tab does not have rounded corners.

This is because the first child is actually a template element (inspect the demo) and fails the .tabs.is-toggle li:first-child a and .tabs.is-toggle.is-toggle-rounded li:first-child a selectors. Would you consider fixing this? I would suggest using :first-of-type instead of :first-child, or even make a PR if you prefer.

Thank you

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

1 participant