Skip to content

Commit

Permalink
fix(Tooltip): text alignment for short text (#3084)
Browse files Browse the repository at this point in the history
  • Loading branch information
joakbjerk authored Dec 15, 2023
1 parent ce28f3e commit 7b83a7a
Show file tree
Hide file tree
Showing 24 changed files with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ p > .dnb-icon {
align-items: center;
padding: 0 1rem;
color: var(--tooltip-color);
text-align: center;
background-color: var(--tooltip-background-color);
border-radius: var(--tooltip-border-radius);
box-shadow: var(--shadow-default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ p > .dnb-icon {
align-items: center;
padding: 0 1rem;
color: var(--tooltip-color);
text-align: center;
background-color: var(--tooltip-background-color);
border-radius: var(--tooltip-border-radius);
box-shadow: var(--shadow-default);
Expand Down Expand Up @@ -682,6 +683,7 @@ p > .dnb-icon {
align-items: center;
padding: 0 1rem;
color: var(--tooltip-color);
text-align: center;
background-color: var(--tooltip-background-color);
border-radius: var(--tooltip-border-radius);
box-shadow: var(--shadow-default);
Expand Down Expand Up @@ -1481,6 +1483,7 @@ p > .dnb-icon {
align-items: center;
padding: 0 1rem;
color: var(--tooltip-color);
text-align: center;
background-color: var(--tooltip-background-color);
border-radius: var(--tooltip-border-radius);
box-shadow: var(--shadow-default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ p > .dnb-icon {
align-items: center;
padding: 0 1rem;
color: var(--tooltip-color);
text-align: center;
background-color: var(--tooltip-background-color);
border-radius: var(--tooltip-border-radius);
box-shadow: var(--shadow-default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ p > .dnb-icon {
align-items: center;
padding: 0 1rem;
color: var(--tooltip-color);
text-align: center;
background-color: var(--tooltip-background-color);
border-radius: var(--tooltip-border-radius);
box-shadow: var(--shadow-default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ p > .dnb-icon {
align-items: center;
padding: 0 1rem;
color: var(--tooltip-color);
text-align: center;
background-color: var(--tooltip-background-color);
border-radius: var(--tooltip-border-radius);
box-shadow: var(--shadow-default);
Expand Down Expand Up @@ -682,6 +683,7 @@ p > .dnb-icon {
align-items: center;
padding: 0 1rem;
color: var(--tooltip-color);
text-align: center;
background-color: var(--tooltip-background-color);
border-radius: var(--tooltip-border-radius);
box-shadow: var(--shadow-default);
Expand Down Expand Up @@ -1388,6 +1390,7 @@ p > .dnb-icon {
align-items: center;
padding: 0 1rem;
color: var(--tooltip-color);
text-align: center;
background-color: var(--tooltip-background-color);
border-radius: var(--tooltip-border-radius);
box-shadow: var(--shadow-default);
Expand Down Expand Up @@ -1990,6 +1993,7 @@ p > .dnb-icon {
align-items: center;
padding: 0 1rem;
color: var(--tooltip-color);
text-align: center;
background-color: var(--tooltip-background-color);
border-radius: var(--tooltip-border-radius);
box-shadow: var(--shadow-default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ p > .dnb-icon {
align-items: center;
padding: 0 1rem;
color: var(--tooltip-color);
text-align: center;
background-color: var(--tooltip-background-color);
border-radius: var(--tooltip-border-radius);
box-shadow: var(--shadow-default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ p > .dnb-icon {
align-items: center;
padding: 0 1rem;
color: var(--tooltip-color);
text-align: center;
background-color: var(--tooltip-background-color);
border-radius: var(--tooltip-border-radius);
box-shadow: var(--shadow-default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ p > .dnb-icon {
align-items: center;
padding: 0 1rem;
color: var(--tooltip-color);
text-align: center;
background-color: var(--tooltip-background-color);
border-radius: var(--tooltip-border-radius);
box-shadow: var(--shadow-default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ p > .dnb-icon {
align-items: center;
padding: 0 1rem;
color: var(--tooltip-color);
text-align: center;
background-color: var(--tooltip-background-color);
border-radius: var(--tooltip-border-radius);
box-shadow: var(--shadow-default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ p > .dnb-icon {
align-items: center;
padding: 0 1rem;
color: var(--tooltip-color);
text-align: center;
background-color: var(--tooltip-background-color);
border-radius: var(--tooltip-border-radius);
box-shadow: var(--shadow-default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ p > .dnb-icon {
align-items: center;
padding: 0 1rem;
color: var(--tooltip-color);
text-align: center;
background-color: var(--tooltip-background-color);
border-radius: var(--tooltip-border-radius);
box-shadow: var(--shadow-default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ p > .dnb-icon {
align-items: center;
padding: 0 1rem;
color: var(--tooltip-color);
text-align: center;
background-color: var(--tooltip-background-color);
border-radius: var(--tooltip-border-radius);
box-shadow: var(--shadow-default);
Expand Down Expand Up @@ -682,6 +683,7 @@ p > .dnb-icon {
align-items: center;
padding: 0 1rem;
color: var(--tooltip-color);
text-align: center;
background-color: var(--tooltip-background-color);
border-radius: var(--tooltip-border-radius);
box-shadow: var(--shadow-default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ p > .dnb-icon {
align-items: center;
padding: 0 1rem;
color: var(--tooltip-color);
text-align: center;
background-color: var(--tooltip-background-color);
border-radius: var(--tooltip-border-radius);
box-shadow: var(--shadow-default);
Expand Down Expand Up @@ -675,6 +676,7 @@ p > .dnb-icon {
align-items: center;
padding: 0 1rem;
color: var(--tooltip-color);
text-align: center;
background-color: var(--tooltip-background-color);
border-radius: var(--tooltip-border-radius);
box-shadow: var(--shadow-default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ p > .dnb-icon {
align-items: center;
padding: 0 1rem;
color: var(--tooltip-color);
text-align: center;
background-color: var(--tooltip-background-color);
border-radius: var(--tooltip-border-radius);
box-shadow: var(--shadow-default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ exports[`NumberFormat scss has to match style dependencies css 1`] = `
align-items: center;
padding: 0 1rem;
color: var(--tooltip-color);
text-align: center;
background-color: var(--tooltip-background-color);
border-radius: var(--tooltip-border-radius);
box-shadow: var(--shadow-default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ p > .dnb-icon {
align-items: center;
padding: 0 1rem;
color: var(--tooltip-color);
text-align: center;
background-color: var(--tooltip-background-color);
border-radius: var(--tooltip-border-radius);
box-shadow: var(--shadow-default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ p > .dnb-icon {
align-items: center;
padding: 0 1rem;
color: var(--tooltip-color);
text-align: center;
background-color: var(--tooltip-background-color);
border-radius: var(--tooltip-border-radius);
box-shadow: var(--shadow-default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ p > .dnb-icon {
align-items: center;
padding: 0 1rem;
color: var(--tooltip-color);
text-align: center;
background-color: var(--tooltip-background-color);
border-radius: var(--tooltip-border-radius);
box-shadow: var(--shadow-default);
Expand Down Expand Up @@ -589,6 +590,7 @@ button.dnb-button::-moz-focus-inner {
align-items: center;
padding: 0 1rem;
color: var(--tooltip-color);
text-align: center;
background-color: var(--tooltip-background-color);
border-radius: var(--tooltip-border-radius);
box-shadow: var(--shadow-default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ p > .dnb-icon {
align-items: center;
padding: 0 1rem;
color: var(--tooltip-color);
text-align: center;
background-color: var(--tooltip-background-color);
border-radius: var(--tooltip-border-radius);
box-shadow: var(--shadow-default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ p > .dnb-icon {
align-items: center;
padding: 0 1rem;
color: var(--tooltip-color);
text-align: center;
background-color: var(--tooltip-background-color);
border-radius: var(--tooltip-border-radius);
box-shadow: var(--shadow-default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ p > .dnb-icon {
align-items: center;
padding: 0 1rem;
color: var(--tooltip-color);
text-align: center;
background-color: var(--tooltip-background-color);
border-radius: var(--tooltip-border-radius);
box-shadow: var(--shadow-default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ exports[`Tooltip scss has to match style dependencies css 1`] = `
align-items: center;
padding: 0 1rem;
color: var(--tooltip-color);
text-align: center;
background-color: var(--tooltip-background-color);
border-radius: var(--tooltip-border-radius);
box-shadow: var(--shadow-default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
padding: 0 1rem;
color: var(--tooltip-color);

text-align: center;

background-color: var(--tooltip-background-color);
border-radius: var(--tooltip-border-radius);
@include defaultDropShadow();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ p > .dnb-icon {
align-items: center;
padding: 0 1rem;
color: var(--tooltip-color);
text-align: center;
background-color: var(--tooltip-background-color);
border-radius: var(--tooltip-border-radius);
box-shadow: var(--shadow-default);
Expand Down

0 comments on commit 7b83a7a

Please sign in to comment.