-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(Cross): [IOAPPX-442] Fix dark mode text on light backgrounds + …
…Fix overflow text on cards + Extend dark mode support (#6473) > [!caution] > This PR depends on: > * #6422 > * pagopa/io-app-design-system#364 ## Short description This PR disables the dark mode appearance of text placed on light backgrounds, such as wallet cards. It also extends dark mode support to other DS components. ## List of changes proposed in this pull request - Update `io-app-design-system` to `4.2.0` - Extend dark mode support to `Alert`, `Banner` and `FeatureInfo` - Fix `CgnCard` and `PaymentCard` dark mode appearance - Force light mode on `Tag` in the `ItwCredentialCard` component - Enable larger and bolder text on the `ItwCredentialCard` component by replacing the native `Text` with properly configured `IOText` (cc @mastro993) - Remove preview version of `ItwCredentialCard` - Fix `CgnCard` and `PaymentCard` expired tag overflow when larger text is set - Remove unused `PaymentCardBig` component to reduce the likelihood of misunderstandings ### Preview A look at an _unlikely_ edge case <img width="300" src="https://github.com/user-attachments/assets/a3a8d013-5fe6-4fde-ad10-886a7b419ee8" /> Dark mode support extended to the `Banner` component <img width="300" src="https://github.com/user-attachments/assets/5f528249-9045-4d2f-8183-aa0b4a4deab5" /> ## How to test Increase the text size to extreme levels and check all the cards in the DS section --------- Co-authored-by: Emanuele Dall'Ara <[email protected]> Co-authored-by: Federico Mastrini <[email protected]>
- Loading branch information
1 parent
3ac2969
commit a5f2871
Showing
27 changed files
with
1,772 additions
and
3,872 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,6 @@ import { | |
ItwStoredCredentialsMocks | ||
} from "../../itwallet/common/utils/itwMocksUtils"; | ||
import { PaymentCard } from "../../payments/common/components/PaymentCard"; | ||
import { PaymentCardBig } from "../../payments/common/components/PaymentCardBig"; | ||
import { PaymentCardSmall } from "../../payments/common/components/PaymentCardSmall"; | ||
import { | ||
PaymentCardsCarousel, | ||
|
@@ -208,49 +207,6 @@ const PaymentCards = () => ( | |
</HStack> | ||
</ScrollView> | ||
</DSComponentViewerBox> | ||
<DSComponentViewerBox name="PaymentCardBig (Pre ITW)"> | ||
<ScrollView | ||
horizontal={true} | ||
showsHorizontalScrollIndicator={false} | ||
style={{ marginHorizontal: -IOVisualCostants.appMarginDefault }} | ||
contentContainerStyle={{ | ||
paddingHorizontal: IOVisualCostants.appMarginDefault | ||
}} | ||
> | ||
<HStack space={cardHorizontalScrollGap}> | ||
<PaymentCardBig | ||
cardType={"PAGOBANCOMAT"} | ||
expirationDate={new Date()} | ||
holderName="A very very very long citizen name" | ||
abiCode="03069" | ||
/> | ||
<PaymentCardBig | ||
cardType={"PAYPAL"} | ||
holderEmail="[email protected]" | ||
/> | ||
<PaymentCardBig | ||
cardType={"COBADGE"} | ||
holderName="Mario Rossi" | ||
abiCode="08509" | ||
expirationDate={new Date()} | ||
cardIcon="visa" | ||
/> | ||
<PaymentCardBig | ||
cardType={"COBADGE"} | ||
holderName="Mario Rossi" | ||
abiCode="08508" | ||
expirationDate={new Date()} | ||
cardIcon="visa" | ||
/> | ||
<PaymentCardBig | ||
cardType={"BANCOMATPAY"} | ||
holderName="Mario Rossi" | ||
phoneNumber="+39 1234567890" | ||
/> | ||
<PaymentCardBig isLoading={true} /> | ||
</HStack> | ||
</ScrollView> | ||
</DSComponentViewerBox> | ||
</VStack> | ||
</DesignSystemSection> | ||
<DesignSystemSection title="PaymentCardSmall"> | ||
|
@@ -389,12 +345,6 @@ const ItwCards = () => ( | |
<VStack space={blockMargin}> | ||
<DesignSystemSection title="Driving License"> | ||
<VStack space={componentMargin}> | ||
<DSComponentViewerBox name="Preview"> | ||
<ItwCredentialCard | ||
credentialType={CredentialType.DRIVING_LICENSE} | ||
isPreview={true} | ||
/> | ||
</DSComponentViewerBox> | ||
<DSComponentViewerBox name="Valid"> | ||
<ItwCredentialCard credentialType={CredentialType.DRIVING_LICENSE} /> | ||
</DSComponentViewerBox> | ||
|
@@ -442,12 +392,6 @@ const ItwCards = () => ( | |
</DesignSystemSection> | ||
<DesignSystemSection title="Disability Card"> | ||
<VStack space={componentMargin}> | ||
<DSComponentViewerBox name="Preview"> | ||
<ItwCredentialCard | ||
credentialType={CredentialType.EUROPEAN_DISABILITY_CARD} | ||
isPreview={true} | ||
/> | ||
</DSComponentViewerBox> | ||
<DSComponentViewerBox name="Valid"> | ||
<ItwCredentialCard | ||
credentialType={CredentialType.EUROPEAN_DISABILITY_CARD} | ||
|
@@ -479,12 +423,6 @@ const ItwCards = () => ( | |
</DesignSystemSection> | ||
<DesignSystemSection title="Health Insurance Card"> | ||
<VStack space={componentMargin}> | ||
<DSComponentViewerBox name="Preview"> | ||
<ItwCredentialCard | ||
credentialType={CredentialType.EUROPEAN_HEALTH_INSURANCE_CARD} | ||
isPreview={true} | ||
/> | ||
</DSComponentViewerBox> | ||
<DSComponentViewerBox name="Valid"> | ||
<ItwCredentialCard | ||
credentialType={CredentialType.EUROPEAN_HEALTH_INSURANCE_CARD} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.