-
-
Notifications
You must be signed in to change notification settings - Fork 162
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
didn't generate classname #288
Comments
I'm also experiencing this issue, however, the classes get generated when there is whitespace after the styleName attribute. This JSX code... <ul className="justify-content-center" styleName="pagination">
<li styleName={`page-item${isFirstPage ? " disabled" : ""}`}>
<a styleName="page-link" href={`${basePath}/1`} aria-label="First">
<span aria-hidden="true">«</span>
<span className="sr-only">First</span>
</a>
</li>
</ul> ... produces this DOM structure. <ul class="justify-content-center ">
<li class="">
<a class="" href="/blog/posts/1" aria-label="First">
<span aria-hidden="true">«</span>
<span class="sr-only">First</span>
</a>
</li>
</ul> However, when I put a space after the first <ul className="justify-content-center" styleName="pagination" >{/* Note the space before the closing angle bracket*/}
<li styleName={`page-item${isFirstPage ? " disabled" : ""}`}>
<a styleName="page-link" href={`${basePath}/1`} aria-label="First">
<span aria-hidden="true">«</span>
<span className="sr-only">First</span>
</a>
</li>
</ul> all <ul class="justify-content-center pagination___3ieNK">
<li class="page-item___2eMHw disabled___2y7aB">
<a class="page-link___t-Mvf" href="/blog/posts/1" aria-label="First">
<span aria-hidden="true">«</span>
<span class="sr-only">First</span>
</a>
</li>
</ul> In another instance, the Edit: A temporary workaround for the issue I'm having is to position the |
my css file:
component
generated dom like this
The text was updated successfully, but these errors were encountered: