From 443ca13f652555af48cf9eb23a48c0be34b5b3e0 Mon Sep 17 00:00:00 2001 From: Leonardo Dourado Date: Tue, 4 Jun 2024 15:53:47 -0300 Subject: [PATCH 1/5] fix: transaction list item --- packages/ocean-core/src/components/_list-item.scss | 6 +++++- .../src/TransactionListItem/TransactionListItem.tsx | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/ocean-core/src/components/_list-item.scss b/packages/ocean-core/src/components/_list-item.scss index b44d87127..56581ac62 100644 --- a/packages/ocean-core/src/components/_list-item.scss +++ b/packages/ocean-core/src/components/_list-item.scss @@ -116,7 +116,7 @@ } .ods-transaction-list-item__information { - margin: 0 $spacing-inline-xs 0 12px; + margin: 0 $spacing-inline-xs 0 0; overflow: hidden; width: 100%; @@ -125,6 +125,10 @@ } } +.ods-transaction-list-item__information--with-icon { + margin: 0 $spacing-inline-xs 0 12px; +} + .ods-transaction-list-item__sub-information { text-align: right; } diff --git a/packages/ocean-react/src/TransactionListItem/TransactionListItem.tsx b/packages/ocean-react/src/TransactionListItem/TransactionListItem.tsx index c660c2c42..8d98a0799 100644 --- a/packages/ocean-react/src/TransactionListItem/TransactionListItem.tsx +++ b/packages/ocean-react/src/TransactionListItem/TransactionListItem.tsx @@ -81,7 +81,11 @@ const TransactionListItem = React.forwardRef< >
{icon &&
{icon}
} -
+
{level4 && (
{level4}
)} From f89e7b45912b0dc2caf35059bbda87c10ec204da Mon Sep 17 00:00:00 2001 From: Leonardo Dourado Date: Tue, 4 Jun 2024 15:59:26 -0300 Subject: [PATCH 2/5] chore: fix transaction list item --- .../__tests__/TransactionListItem.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ocean-react/src/TransactionListItem/__tests__/TransactionListItem.test.tsx b/packages/ocean-react/src/TransactionListItem/__tests__/TransactionListItem.test.tsx index 66d371ffc..5f40c65e6 100644 --- a/packages/ocean-react/src/TransactionListItem/__tests__/TransactionListItem.test.tsx +++ b/packages/ocean-react/src/TransactionListItem/__tests__/TransactionListItem.test.tsx @@ -26,7 +26,7 @@ test('renders default element properly', () => { class="ods-transaction-list-item__content" >
{ mock-exclamation-circle-outline
Date: Tue, 4 Jun 2024 16:07:05 -0300 Subject: [PATCH 3/5] fix: snapshot of transaction list spec --- .../__tests__/TransactionListItem.test.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/ocean-react/src/TransactionListItem/__tests__/TransactionListItem.test.tsx b/packages/ocean-react/src/TransactionListItem/__tests__/TransactionListItem.test.tsx index 5f40c65e6..ef4acd637 100644 --- a/packages/ocean-react/src/TransactionListItem/__tests__/TransactionListItem.test.tsx +++ b/packages/ocean-react/src/TransactionListItem/__tests__/TransactionListItem.test.tsx @@ -26,7 +26,7 @@ test('renders default element properly', () => { class="ods-transaction-list-item__content" >
{ mock-exclamation-circle-outline
{ mock-exclamation-circle-outline
Date: Wed, 5 Jun 2024 09:49:01 -0300 Subject: [PATCH 4/5] chore: fix chromatic action version --- .github/workflows/chromatic.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index a80030018..ae62ecbab 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -48,14 +48,14 @@ jobs: - name: Publish to Chromatic if: ${{ github.actor != 'dependabot[bot]' && github.ref != 'refs/heads/master' }} - uses: chromaui/action@v1 + uses: chromaui/action-canary@v11.5.0 with: token: ${{ secrets.GITHUB_TOKEN }} projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} - name: Publish to Chromatic and auto accept changes if: ${{ github.actor != 'dependabot[bot]' && github.ref == 'refs/heads/main' }} - uses: chromaui/action@v1 + uses: chromaui/action-canary@v11.5.0 with: token: ${{ secrets.GITHUB_TOKEN }} projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} From c40c50814050a46028b187db55e7b5da7d1fec55 Mon Sep 17 00:00:00 2001 From: Leonardo Dourado Date: Wed, 5 Jun 2024 09:53:10 -0300 Subject: [PATCH 5/5] chore: change chromatic action to v11.4.0 --- .github/workflows/chromatic.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index ae62ecbab..3a945fc08 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -48,14 +48,14 @@ jobs: - name: Publish to Chromatic if: ${{ github.actor != 'dependabot[bot]' && github.ref != 'refs/heads/master' }} - uses: chromaui/action-canary@v11.5.0 + uses: chromaui/action@v11.4.0 with: token: ${{ secrets.GITHUB_TOKEN }} projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} - name: Publish to Chromatic and auto accept changes if: ${{ github.actor != 'dependabot[bot]' && github.ref == 'refs/heads/main' }} - uses: chromaui/action-canary@v11.5.0 + uses: chromaui/action@v11.4.0 with: token: ${{ secrets.GITHUB_TOKEN }} projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}