Comments (4)
Hmm yeah it should work as long as pc-icon-button
is defined in the file. We can probably remove the reference to pc-icon-button though @fredwu ? The group class should be enough to work
from petal_components.
I'm not sure the group name is the cause:
Groups can be named however you like and donβt need to be configured in any way β just name your groups directly in your markup and Tailwind will automatically generate the necessary CSS.
https://tailwindcss.com/docs/hover-focus-and-other-states#differentiating-nested-groups
Removing the group name will cause the button to not be embeddable in a parent group. as the parent group will affect the visibility of the button.
from petal_components.
@henryoswald could you please check to see what version of Tailwind is configured?
In config/config.exs
:
config :tailwind,
version: "3.3.1",
#...
And do a mix tailwind.install
to make sure the specified version is used.
from petal_components.
Thanks, I was on 3.1.8 still from my petal_pro clone. I didn't realise there was a separate place to specify the version.
All sorted now.
from petal_components.
Related Issues (20)
- Switch component attr :rest does not include ~w(checked_value unchecked_value checked hidden_input) HOT 2
- input fields components ignores class attributes HOT 2
- Expand JS events from components HOT 1
- Allow override or removal of phx-click-away on modal HOT 1
- The `group-hover/pc-icon-button:flex` class does not exist. HOT 2
- Dropdown in LiveView opens when I click on any button HOT 3
- Add `disabled` attribute to `Tabs` `.tab` component HOT 1
- Breaking change on `1.5.0` with tailwind `3.3.3` HOT 2
- Wrong cursor on disabled link HOT 2
- Add option to remove close button in dialog header HOT 1
- Pagination path :page not encoding safe HOT 4
- Slide over not showing up after updating to 1.7.0 HOT 2
- Switch string interpolation breaks when passing a class to component HOT 3
- Demo is not working HOT 2
- `no function clause matching in PetalComponents.Button.get_color_classes/1` HOT 2
- SlideOver no longer receiving close_slide_over event on click-away on PhoenixLiveView 0.20.2 HOT 1
- ImageUpload wipes entered data from other form elements
- Menu Petal flash missing PF badge
- Table with stream clears upon update HOT 1
- Combo-box single select bottom border radius HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from petal_components.