Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ts-sdk:dapp-kit): Improve connect-modal style #4771

Merged
merged 8 commits into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading