Skip to content

Commit

Permalink
feat(ts-sdk:dapp-kit): Improve connect-modal style (#4771)
Browse files Browse the repository at this point in the history
* feat: Improve `connect-modal` style

* chore: Fix lint error

* chore: add changeset

* refactor: Style the IOTA logo
  • Loading branch information
marc2332 authored Jan 21, 2025
1 parent 60a78f3 commit f0c83a2
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/mighty-pans-suffer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@iota/dapp-kit': minor
---

Improved the connect-modal style so its easier to read and interact in small screens
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function ConnectionStatus({
<div className={styles.retryButtonContainer}>
<Button
type="button"
variant="outline"
variant="primary"
onClick={() => onRetryConnection(selectedWallet)}
>
Retry Connection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ export const content = style({
flexGrow: 1,
gap: 20,
padding: 40,
paddingBottom: 60,
overflow: 'auto',
});

export const installButtonContainer = style({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function GettingStarted() {
extension.
</InfoSection>
<div className={styles.installButtonContainer}>
<Button variant="outline" asChild>
<Button variant="primary" asChild>
<a
href="https://chrome.google.com/webstore/detail/iota-wallet/iidjkmdceolghepehaaddojmnjnkkija"
target="_blank"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@
// SPDX-License-Identifier: Apache-2.0

import { style } from '@vanilla-extract/css';
import { themeVars } from '../../../themes/themeContract.js';

export const container = style({
display: 'flex',
flexDirection: 'column',
gap: 4,
});

export const icon = style({
color: themeVars.colors.body,
});
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function WalletList({ selectedWalletName, onPlaceholderClick, onSelect }:
) : (
<WalletListItem
name="IOTA Wallet"
icon={<IotaIcon />}
icon={<IotaIcon className={styles.icon} />}
onClick={onPlaceholderClick}
isSelected
/>
Expand Down
4 changes: 2 additions & 2 deletions sdk/dapp-kit/src/themes/darkTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export const darkTheme: ThemeVars = {
iconButton: 'transparent',
dropdownMenu: '#0f141c',
dropdownMenuSeparator: '#bed8ff14',
walletItemSelected: '#171D26',
walletItemHover: 'rgba(190, 216, 255, 0.12)',
walletItemSelected: 'rgba(190, 216, 255, 0.12)',
walletItemHover: 'rgba(190, 216, 255, 0.06)',
scrollThumb: '#3c4656',
},
borderColors: {
Expand Down

0 comments on commit f0c83a2

Please sign in to comment.