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

A CSS rule could be more targeted to not interfere with others #184

Closed
francis-chiss opened this issue Apr 14, 2023 · 2 comments
Closed
Assignees
Labels
area-grid bug Something isn't working
Milestone

Comments

@francis-chiss
Copy link

I was using the Bootstrap dropdown inside a table, and after installing this library, its cosmetics changed (the arrow down dissapeared).

I quickly tracked it down to the following CSS rule in blazor.bootstrap.css :

image

Putting content: "" instead made it work, but that's obviously not the best fix.

I presume this rule is there so that other components using it (DatePicker? other?) are sized correctly, but as stated previously, it's also impacting non-related elements.

@gvreddy04
Copy link
Contributor

@francis-chiss Thank you for using our components. Could you please share a sample code or GitHub repo to understand the scenario?

@francis-chiss
Copy link
Author

francis-chiss commented Apr 17, 2023

Sure, just use the following in a Blazor page:

<table>
    <thead><td>Like Bootstrap suggests</td><td>With workaround</td></thead>
    <tbody>
    <td>
        <button class="btn btn-primary btn-sm pb-0 dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false"></button>
    </td>
    <td>
        <button class="btn btn-primary btn-sm pb-0 dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
            <i class="bi-caret-down-fill" style="font-size: 0.6rem; vertical-align: middle"></i>
        </button>
    </td>
    </tbody>
</table>

And in Chrome, this gives me the following visual:
image

@gvreddy04 gvreddy04 added bug Something isn't working area-grid and removed needs-more-info labels Apr 19, 2023
@gvreddy04 gvreddy04 added this to the 1.7.1 milestone Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-grid bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants