admin管理员组文章数量:1389761
since the new accordion widget of Elementor uses content-visibility: hidden for its contents before a tab is opened, it's not possible to make certain elements within visible before that.
But that's exactly what I need in this case. Is there any way to disable the method of hiding content within closed tabs, so I can display a certain absolute positioned element before the tab is opened? I'm aware that content then gets rendered for all tabs BEFORE opened, but that's okay in this case.
All attempts to override content-visibility: hidden; set for the slot:not([name]) selector for each accordion tab failed, no matter if CSS with !important or JS keeping shadow DOM in mind..
Any ideas for another approaches I'm overlooking here?
since the new accordion widget of Elementor uses content-visibility: hidden for its contents before a tab is opened, it's not possible to make certain elements within visible before that.
But that's exactly what I need in this case. Is there any way to disable the method of hiding content within closed tabs, so I can display a certain absolute positioned element before the tab is opened? I'm aware that content then gets rendered for all tabs BEFORE opened, but that's okay in this case.
All attempts to override content-visibility: hidden; set for the slot:not([name]) selector for each accordion tab failed, no matter if CSS with !important or JS keeping shadow DOM in mind..
Any ideas for another approaches I'm overlooking here?
Share Improve this question asked Mar 13 at 11:00 BradleyBradley 1093 silver badges17 bronze badges 1- There is absolutely no way to make elements visible if their parent element is set to content-visibility: hidden; or to override the JS injected CSS for Elementor's nested accordions. I fixed this by just moving the certain elements within the DOM to make them visible keeping the rest of the accordions content untouched. – Bradley Commented Mar 13 at 14:54
1 Answer
Reset to default 0You likely can't directly make an element inside a closed new accordian tab visible outside before it's opened due to Elementor's optimization. Consider these shorter alternatives:
- Move the visible element next to the accordion itme and position it visually.
- Use the older toggle widget if it suits your needs.
- Build a custom accordion like structure with HTML/CSS/JS.
版权声明:本文标题:javascript - Make element visible within Elementor's accordion widget before item is opened - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744705632a2620825.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论