Skip to content

Commit

Permalink
Merge pull request #873 from nidhi-kala/clearing-visual-regressions
Browse files Browse the repository at this point in the history
Value component error icon
  • Loading branch information
archiewood authored May 16, 2023
2 parents d2e1a17 + 1ac6087 commit b768cf9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/afraid-planets-sip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@evidence-dev/components': patch
---

Error icon in value component is now vertically centered and color is white
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@
svg {
margin: auto;
display: block;
height: 100%;
}
</style>
7 changes: 5 additions & 2 deletions sites/example-project/src/components/viz/Value.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
<span class="error">
<span class="error-label">Error</span>
<span class="additional-info-icon">
<HelpCircleIcon height="18" width="18" verticalOffset="2" color="--grey-000" />
<HelpCircleIcon height="18" width="18" verticalOffset="1" color="--grey-100" />
</span>
<span class="error-msg">{error}</span>
</span>
Expand Down Expand Up @@ -117,7 +117,10 @@
}
.additional-info-icon {
display: inline;
display: flex;
align-items: center;
height: 100%;
width: 100%;
vertical-align: middle;
width: 14px;
color: white;
Expand Down

0 comments on commit b768cf9

Please sign in to comment.