Dark Mode: Update transaction detail activity log (#13919)

feature/default_network_editable
David Walsh 3 years ago committed by GitHub
parent 6aaeab2f24
commit 0ab9a39c7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 28
      app/images/icons/expand.svg
  2. 4
      ui/components/app/transaction-activity-log/index.scss
  3. 5
      ui/components/ui/disclosure/disclosure.js
  4. 20
      ui/components/ui/disclosure/disclosure.scss

@ -1,28 +0,0 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="16" height="16" fill="#E5E5E5"/>
<g clip-path="url(#clip0_0_1)">
<rect width="413" height="679" transform="translate(-57 -546)" fill="white"/>
<g filter="url(#filter0_d_0_1)">
<path d="M-31 -520C-31 -524.418 -27.4183 -528 -23 -528H321C325.418 -528 329 -524.418 329 -520V108C329 112.418 325.418 116 321 116H-23C-27.4183 116 -31 112.418 -31 108V-520Z" fill="white"/>
</g>
<line x1="7.5" y1="-128" x2="7.49999" y2="8" stroke="#D6D9DC"/>
<circle cx="8" cy="8" r="7.5" fill="white" stroke="#D6D9DC"/>
<line x1="4.1001" y1="7.83325" x2="11.7668" y2="7.83325" stroke="#D6D9DC" stroke-linecap="round"/>
<line x1="8.1001" y1="4.16699" x2="8.1001" y2="11.8337" stroke="#D6D9DC" stroke-linecap="round"/>
</g>
<rect x="-2918.5" y="-1765.5" width="9747" height="4874" stroke="black"/>
<defs>
<filter id="filter0_d_0_1" x="-58" y="-553" width="414" height="698" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dy="2"/>
<feGaussianBlur stdDeviation="13.5"/>
<feColorMatrix type="matrix" values="0 0 0 0 0.12594 0 0 0 0 0.182502 0 0 0 0 0.305378 0 0 0 0.26 0"/>
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_0_1"/>
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_0_1" result="shape"/>
</filter>
<clipPath id="clip0_0_1">
<rect width="413" height="679" fill="white" transform="translate(-57 -546)"/>
</clipPath>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 1.6 KiB

@ -56,11 +56,11 @@
&__activity-text { &__activity-text {
@include H7; @include H7;
color: var(--dusty-gray); color: var(--color-text-alternate);
cursor: pointer; cursor: pointer;
&:hover { &:hover {
color: var(--black); color: var(--color-text-default);
} }
} }

@ -22,8 +22,9 @@ const Disclosure = ({ children, title, size }) => {
<div className="disclosure" onClick={() => setOpen((state) => !state)}> <div className="disclosure" onClick={() => setOpen((state) => !state)}>
{title ? ( {title ? (
<details> <details>
<summary className="disclosure__title disclosure__summary typography--weight-bold typography--color-black"> <summary className="disclosure__summary">
{title}:{' '} <i className="fa fa-plus" />
{title}
</summary> </summary>
<div className={classnames('disclosure__content', size)}> <div className={classnames('disclosure__content', size)}>
{children} {children}

@ -7,26 +7,18 @@
position: relative; position: relative;
padding-left: 24px; padding-left: 24px;
padding-bottom: 10px; padding-bottom: 10px;
font-weight: bold;
i {
margin-inline-start: -20px;
margin-inline-end: 10px;
}
&::-webkit-details-marker, &::-webkit-details-marker,
&::marker { &::marker {
display: none; display: none;
content: ''; content: '';
} }
&::before {
position: absolute;
content: ' ';
flex: 0 0 auto;
height: 16px;
width: 16px;
background-image: url('images/icons/expand.svg');
background-size: contain;
background-repeat: no-repeat;
cursor: pointer;
left: 0;
top: 2px;
}
} }
&__content { &__content {

Loading…
Cancel
Save