Shadow from modal inherited on inputs inside that modal
See original GitHub issueWhat version of Tailwind CSS are you using?
2.2.6
What build tool (or framework if it abstracts the build tool) are you using?
vue-cli
What version of Node.js are you using?
latest
What browser are you using?
Chromium
What operating system are you using?
Fedora
Describe your issue
Everything work fine but after the latest release things got weir all over our project. We have pretty standard installation of Tailwind and CSS so I thought I should report this.
We had to go back to 2.2.4 so the problem might be already at 2.2.5
This is what’s happening:
When I focus on element in modal it suddenly inherits a shadow-xl
style. Which is on parent modal. It’s pretty weird.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Bootstrap Modal sitting behind backdrop - Stack Overflow
The reason the backdrop comes above your modal is id the parent has any position set. A very simple way to solve the...
Read more >4 reasons your z-index isn't working (and how to fix it)
Because the modal is inside the content element, its z-index of 100 only has an effect inside its parent, the content element.
Read more >box-shadow - CSS: Cascading Style Sheets - MDN Web Docs
The box-shadow property enables you to cast a drop shadow from the frame of almost any element. If a border-radius is specified on...
Read more >How To Use Opacity and Transparency to Create a Modal in ...
You will create a modal that appears with a no-JavaScript approach using the :target pseudo class and the opacity , pointer-events , and ......
Read more >Getting Deep Into Shadows | CSS-Tricks
The modal has an underlying black shadow against ... property is the only property that can create inner shadows for a sunken effect....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey! Any reason you deleted the reproduction field rather than providing one? That makes it extremely hard for me to be able to help.
Even just showing me the HTML for the modal and the input would help, but half of the classes on the input are cut off in the screenshot. Please help me out even a tiny bit here 🙃
Hi, I have the same problem and have reproduced it with
v2.2.6
here: https://codepen.io/mxlje/pen/KKmbRGZRemove the
shadow-xl
class from the wrapper and you can see that the input no longer has a shadow when focused.While it seems fixed in
v2.2.7
, the underlying issue actually comes from tailwind-forms. As you can see in the example, the input itself doesn’t have any classes applied except for the default styles that come from tailwind-forms.The example was created with tailwind
v2.2.6
and tailwind-formsv0.3.3
.