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

Fix: center align icons #972

Open
wants to merge 4 commits into
base: v1/contrib
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/uui-box/lib/uui-box.element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export class UUIBoxElement extends LitElement {

#header {
display: flex;
align-items: center;
column-gap: var(--uui-size-space-5);
border-bottom: 1px solid var(--uui-color-divider-standalone);
padding: var(
Expand Down
5 changes: 4 additions & 1 deletion packages/uui-button/lib/uui-button.element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,12 @@ export class UUIButtonElement extends UUIFormControlMixin(

.label {
line-height: normal; /** needed to reset 'a > span' */
display: block;
transition: opacity 120ms;
display: flex;
gap: var(--uui-size-1);
align-items: center;
}

:host([state]:not([state=''])) .label {
opacity: 0;
}
Expand Down
5 changes: 3 additions & 2 deletions packages/uui-icon/lib/uui-icon.element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,9 @@ export class UUIIconElement extends LitElement {
static styles = [
css`
:host {
display: inline-block;
vertical-align: bottom;
display: inline-flex;
align-items: center;
justify-content: center;
width: 1.125em;
height: 1.125em;
}
Expand Down
9 changes: 5 additions & 4 deletions packages/uui-ref-node/lib/uui-ref-node.element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,18 +178,16 @@ export class UUIRefNodeElement extends UUIRefElement {
}

#content {
align-self: stretch;
line-height: normal;
display: flex;
position: relative;
align-items: center;
justify-content: center;
line-height: 1.2em;
}

#open-part {
color: inherit;
text-decoration: none;
cursor: pointer;
align-self: stretch;
display: flex;
flex-grow: 1;
padding: calc(var(--uui-size-2));
Expand All @@ -199,6 +197,9 @@ export class UUIRefNodeElement extends UUIRefElement {
font-size: 1.2em;
margin-left: var(--uui-size-2);
margin-right: var(--uui-size-1);
display: flex;
align-items: center;
justify-content: center;
}

#info {
Expand Down
Loading