Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Alert text is not vertically centred to icon #92

Closed
cstranex opened this issue Nov 17, 2016 · 2 comments
Closed

Alert text is not vertically centred to icon #92

cstranex opened this issue Nov 17, 2016 · 2 comments
Assignees
Milestone

Comments

@cstranex
Copy link

[X] bug
[ ] feature request
[ ] enhancement

Expected behavior

Alert icons are aligned with text.

Actual behavior

Text is slightly higher than the alert text.
results

Reproduction of behavior

<div class="alert alert-warning alert-sm">
    <button type="button" class="close" aria-label="Close">
        <span aria-hidden="true">&times;</span>
    </button>
    <div class="alert-item">
        <span class="alert-text">
            This text will not line up with icon
        </span>
    </div>
</div>

Environment details

  • Clarity version: 0.7.0

  • Browser: [ Chrome 54 | Firefox 49.0.2 ]

Workaround

Specifying line-height: initial; on the alert-text will cause the text to line up correctly.

@adibwoy
Copy link
Contributor

adibwoy commented Nov 17, 2016

Hi @cstranex. Thanks for reporting this. I will get this fixed ASAP. I set the incorrect line-height on small alerts.

@github-actions
Copy link

github-actions bot commented Nov 4, 2020

Hi there 👋, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed issues after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary.

@github-actions github-actions bot locked and limited conversation to collaborators Nov 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants