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

fixing toast issue and typography issue #113

Merged
merged 1 commit into from
Aug 27, 2024
Merged

Conversation

Swathi-eGov
Copy link
Contributor

No description provided.

Copy link
Contributor

coderabbitai bot commented Aug 27, 2024

Walkthrough

The recent updates involve enhancements to the styling of various components across the project, focusing on responsive design and typography. Key adjustments include the introduction of media queries to dynamically adjust font sizes and gaps based on viewport aspect ratios. Additionally, some components have seen refinements in class naming for improved clarity, alongside updates to ensure consistency with the overarching theme.

Changes

Files Change Summary
.../bottomSheetV2.scss, .../breadcrumbV2.scss, .../checkboxV2.scss, .../fieldV1.scss, .../headerdropdownV2.scss, .../mobilesidebarV2.scss, .../multiSelectDropdownV2.scss, .../panelCardV2.scss, .../popUpV2.scss, .../radiobtnV2.scss, .../selectDropdownV2.scss, .../sidebarV2.scss, .../stepperV2.scss, .../textblockV2.scss, .../timelineV2.scss, .../topbarV2.scss, .../treeSelectV2.scss, .../uploaderV2.scss, .../viewCardFieldPairV2.scss Enhancements to various classes with new font properties and responsive design via media queries for aspect ratio adjustments. Focus on ensuring consistency in typography and visual presentation across components.
.../toastV2.scss Reactivated and expanded styling for .digit-toast-success and related classes, introducing responsive design features and distinct styles for different notification types. Includes padding, height, and transition effects.
.../SubmitBar.js Modified the class name structure for the disabled state of the button in the SubmitBar component for improved clarity and styling control.
.../Toast.stories.js Adjusted the layout of the Toast component in the storybook by wrapping it in a flexbox container for better visual presentation, including a new style property for positioning.
.../CHANGELOG.md Updated changelog to reflect the new version entry for 0.0.2-beta.26, noting changes to the class name for the Submitbar component in a disabled state.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant SubmitBar
    participant Toast

    User->>SubmitBar: Click Submit
    SubmitBar->>Toast: Show Success Message
    Toast-->>User: Display Notification
Loading

🐰 In the garden, I hop with glee,
Styling changes, oh so free!
Fonts that dance and gaps that sway,
Responsive magic brightens the day!
With each update, we take a leap,
A joyful code, a secret to keep! 🌼✨


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 0bdf809 and bebf9ac.

Files ignored due to path filters (7)
  • react/css/package.json is excluded by !**/*.json
  • react/example/package.json is excluded by !**/*.json
  • react/modules/Project/package.json is excluded by !**/*.json
  • react/modules/core/package.json is excluded by !**/*.json
  • react/modules/sample/package.json is excluded by !**/*.json
  • react/package.json is excluded by !**/*.json
  • react/ui-components/package.json is excluded by !**/*.json
Files selected for processing (25)
  • react/css/src/digitv2/components/bottomSheetV2.scss (1 hunks)
  • react/css/src/digitv2/components/breadcrumbV2.scss (2 hunks)
  • react/css/src/digitv2/components/buttonsV2.scss (2 hunks)
  • react/css/src/digitv2/components/checkboxV2.scss (1 hunks)
  • react/css/src/digitv2/components/fieldV1.scss (2 hunks)
  • react/css/src/digitv2/components/headerdropdownV2.scss (3 hunks)
  • react/css/src/digitv2/components/mobilesidebarV2.scss (2 hunks)
  • react/css/src/digitv2/components/multiSelectDropdownV2.scss (2 hunks)
  • react/css/src/digitv2/components/panelCardV2.scss (1 hunks)
  • react/css/src/digitv2/components/popUpV2.scss (1 hunks)
  • react/css/src/digitv2/components/radiobtnV2.scss (1 hunks)
  • react/css/src/digitv2/components/selectDropdownV2.scss (2 hunks)
  • react/css/src/digitv2/components/sidebarV2.scss (1 hunks)
  • react/css/src/digitv2/components/stepperV2.scss (1 hunks)
  • react/css/src/digitv2/components/switchV2.scss (1 hunks)
  • react/css/src/digitv2/components/textblockV2.scss (1 hunks)
  • react/css/src/digitv2/components/timelineV2.scss (1 hunks)
  • react/css/src/digitv2/components/toastV2.scss (2 hunks)
  • react/css/src/digitv2/components/topbarV2.scss (1 hunks)
  • react/css/src/digitv2/components/treeSelectV2.scss (1 hunks)
  • react/css/src/digitv2/components/uploaderV2.scss (4 hunks)
  • react/css/src/digitv2/components/viewCardFieldPairV2.scss (1 hunks)
  • react/ui-components/CHANGELOG.md (1 hunks)
  • react/ui-components/src/atoms/SubmitBar.js (1 hunks)
  • react/ui-components/src/atoms/stories/Toast.stories.js (1 hunks)
Files skipped from review due to trivial changes (2)
  • react/ui-components/CHANGELOG.md
  • react/ui-components/src/atoms/SubmitBar.js
Additional comments not posted (63)
react/css/src/digitv2/components/viewCardFieldPairV2.scss (3)

17-21: LGTM!

The theme-based font properties ensure consistency and maintainability.

The code changes are approved.


22-26: LGTM!

The media query for mobile devices enhances readability on smaller screens.

The code changes are approved.


27-35: LGTM!

The media queries for tablets and desktop devices enhance readability on larger screens.

The code changes are approved.

react/css/src/digitv2/components/textblockV2.scss (3)

45-49: LGTM!

The theme-based font properties ensure consistency and maintainability.

The code changes are approved.


50-54: LGTM!

The media query for mobile devices enhances readability on smaller screens.

The code changes are approved.


55-63: LGTM!

The media queries for tablets and desktop devices enhance readability on larger screens.

The code changes are approved.

react/ui-components/src/atoms/stories/Toast.stories.js (2)

19-32: LGTM!

The flexbox layout ensures the Toast component is centered within its parent container, enhancing its presentation.

The code changes are approved.


40-40: LGTM!

The style property in commonArgs sets the left position to 25%, influencing the positioning of the Toast component.

The code changes are approved.

react/css/src/digitv2/components/checkboxV2.scss (4)

65-65: LGTM!

The addition of font-family using the theme function ensures consistency and theming.

The code changes are approved.


66-66: LGTM!

The addition of font-style using the theme function ensures consistency and theming.

The code changes are approved.


67-67: LGTM!

The addition of font-weight using the theme function ensures consistency and theming.

The code changes are approved.


68-83: LGTM!

The addition of line-height using the theme function and media queries for responsive font sizes ensures consistency, theming, and responsiveness.

The code changes are approved.

react/css/src/digitv2/components/breadcrumbV2.scss (2)

23-41: LGTM!

The addition of font-family, font-style, font-weight, and line-height using the theme function and media queries for responsive font sizes ensures consistency, theming, and responsiveness.

The code changes are approved.


66-84: LGTM!

The addition of font-family, font-style, font-weight, and line-height using the theme function and media queries for responsive font sizes ensures consistency, theming, and responsiveness.

The code changes are approved.

react/css/src/digitv2/components/bottomSheetV2.scss (1)

68-78: LGTM!

The addition of media queries for responsive gap property ensures the layout's adaptability to different screen sizes and orientations.

The code changes are approved.

react/css/src/digitv2/components/switchV2.scss (1)

73-73: LGTM!

The change to use the primary text color improves visibility and aligns with design guidelines.

The code changes are approved.

react/css/src/digitv2/components/radiobtnV2.scss (3)

79-82: LGTM!

The addition of font family, style, weight, and line height settings derived from the theme configuration enhances typography consistency.

The code changes are approved.


84-97: LGTM!

The introduction of responsive font sizing through media queries ensures that the label's font size adjusts appropriately across different screen sizes.

The code changes are approved.


97-97: LGTM!

The change to use the primary text color improves visibility and aligns with design guidelines.

The code changes are approved.

react/css/src/digitv2/components/toastV2.scss (3)

Line range hint 1-81: LGTM!

The reactivation and expansion of the .digit-toast-success class with new styles, responsive design features, and animation effects enhance the visual presentation and functionality of success notifications.

The code changes are approved.


83-145: LGTM!

The new styles for the .digit-toast-success class, including responsive design features and specific styles for different notification types, improve the visual coherence and flexibility of the notification system.

The code changes are approved.


148-156: LGTM!

The addition of the @keyframes slideInFromBottom animation provides a smooth transition effect for the toast's entrance, enhancing user interaction.

The code changes are approved.

react/css/src/digitv2/components/fieldV1.scss (2)

38-56: LGTM!

The added font properties and media queries enhance the typography and responsiveness of the .info-icon .infotext class. The use of theme variables ensures consistency across the application.

The code changes are approved.


97-115: LGTM!

The added font properties and media queries enhance the typography and responsiveness of the .digit-description and .digit-charcount classes. The use of theme variables ensures consistency across the application.

The code changes are approved.

react/css/src/digitv2/components/stepperV2.scss (1)

27-45: LGTM!

The added font properties and media queries enhance the typography and responsiveness of the .stepper-label class. The use of theme variables ensures consistency across the application.

The code changes are approved.

react/css/src/digitv2/components/treeSelectV2.scss (1)

128-146: LGTM!

The added font properties and media queries enhance the typography and responsiveness of the .digit-option-label class. The use of theme variables ensures consistency across the application.

The code changes are approved.

react/css/src/digitv2/components/timelineV2.scss (5)

76-76: LGTM!

The font-family property is correctly set using theme variables.

The code changes are approved.


77-77: LGTM!

The font-style property is correctly set using theme variables.

The code changes are approved.


78-78: LGTM!

The font-weight property is correctly set using theme variables.

The code changes are approved.


79-79: LGTM!

The line-height property is correctly set using theme variables.

The code changes are approved.


81-94: LGTM!

The media queries for responsive font-size are correctly implemented.

The code changes are approved.

react/css/src/digitv2/components/panelCardV2.scss (5)

87-87: LGTM!

The font-family property is correctly set using theme variables.

The code changes are approved.


88-88: LGTM!

The font-style property is correctly set using theme variables.

The code changes are approved.


89-89: LGTM!

The font-weight property is correctly set using theme variables.

The code changes are approved.


90-90: LGTM!

The line-height property is correctly set using theme variables.

The code changes are approved.


92-105: LGTM!

The media queries for responsive font-size are correctly implemented.

The code changes are approved.

react/css/src/digitv2/components/headerdropdownV2.scss (5)

34-34: LGTM!

The font-family property is correctly set using theme variables.

The code changes are approved.


35-35: LGTM!

The font-style property is correctly set using theme variables.

The code changes are approved.


36-36: LGTM!

The font-weight property is correctly set using theme variables.

The code changes are approved.


37-37: LGTM!

The line-height property is correctly set using theme variables.

The code changes are approved.


39-52: LGTM!

The media queries for responsive font-size are correctly implemented.

The code changes are approved.

Also applies to: 123-136, 163-176

react/css/src/digitv2/components/topbarV2.scss (3)

379-383: LGTM!

The font-related styles are correctly added and use the theme function for consistency.

The code changes are approved.


384-387: LGTM!

The media query for mobile devices is correctly added and adjusts the font-size for better responsiveness.

The code changes are approved.


389-397: LGTM!

The media queries for tablets and desktop devices are correctly added and adjust the font-size for better responsiveness.

The code changes are approved.

react/css/src/digitv2/components/buttonsV2.scss (6)

327-331: LGTM!

The use of the @apply directive improves the readability and maintainability of the styles.

The code changes are approved.


335-343: LGTM!

The use of the @apply directive improves the readability and maintainability of the styles.

The code changes are approved.


346-349: LGTM!

The use of the &.disabled selector improves the clarity of the disabled state styling.

The code changes are approved.


355-357: LGTM!

The hover state now includes a box-shadow effect, enhancing visual feedback for user interactions.

The code changes are approved.


359-364: LGTM!

The active state introduces additional shadow effects and modifies the font weight of the h2 element, providing a more pronounced visual cue when the button is pressed.

The code changes are approved.


327-331: LGTM!

The use of the @apply directive improves the readability and maintainability of the styles.

The code changes are approved.

react/css/src/digitv2/components/popUpV2.scss (2)

144-148: LGTM!

The font-related properties are correctly added and use the theme function for consistency.

The code changes are approved.


149-162: LGTM!

The media queries for mobile, tablet, and desktop devices are correctly added and adjust the font-size for better responsiveness.

The code changes are approved.

react/css/src/digitv2/components/multiSelectDropdownV2.scss (2)

95-113: LGTM! Ensure theme variables are correctly defined.

The changes improve typography consistency and responsiveness. Verify that the theme variables used are correctly defined in the theme configuration.

The code changes are approved.

Run the following script to verify the theme variables:


203-221: LGTM! Ensure theme variables are correctly defined.

The changes improve typography consistency and responsiveness. Verify that the theme variables used are correctly defined in the theme configuration.

The code changes are approved.

Run the following script to verify the theme variables:

react/css/src/digitv2/components/mobilesidebarV2.scss (2)

231-249: LGTM! Ensure theme variables are correctly defined.

The changes improve typography consistency and responsiveness. Verify that the theme variables used are correctly defined in the theme configuration.

The code changes are approved.

Run the following script to verify the theme variables:


296-314: LGTM! Ensure theme variables are correctly defined.

The changes improve typography consistency and responsiveness. Verify that the theme variables used are correctly defined in the theme configuration.

The code changes are approved.

Run the following script to verify the theme variables:

Verification successful

Theme Variables Verified:

The theme variables used in mobilesidebarV2.scss are correctly defined in the codebase, specifically in react/css/src/digitv2/typography.scss and react/css/src/digitv2/components/mobilesidebarV2.scss. The changes are consistent with the existing theme configuration.

  • fontFamily, fontStyle, fontWeight, lineHeight, and fontSize are all defined and used appropriately.
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify that the theme variables used in the SCSS file are correctly defined.

# Test: Search for the theme variable definitions. Expect: Definitions for fontFamily, fontStyle, fontWeight, lineHeight, fontSize.
rg --type scss 'theme(digitv2.fontFamily.sans|digitv2.fontStyle.normal|digitv2.fontWeight.regular|digitv2.lineHeight.lineheight2|digitv2.fontSize.body-s.mobile|digitv2.fontSize.body-s.tablet|digitv2.fontSize.body-s.desktop)'

Length of output: 255


Script:

#!/bin/bash
# Description: Verify that the theme variables used in the SCSS file are correctly defined.

# Test: Search for the theme variable definitions without specifying file type.
rg 'theme(digitv2.fontFamily.sans|digitv2.fontStyle.normal|digitv2.fontWeight.regular|digitv2.lineHeight.lineheight2|digitv2.fontSize.body-s.mobile|digitv2.fontSize.body-s.tablet|digitv2.fontSize.body-s.desktop)'

Length of output: 214


Script:

#!/bin/bash
# Description: Search for SCSS variable definitions related to the theme variables.

# Test: Use ast-grep to search for SCSS variable definitions.
ast-grep --lang scss --pattern '$_: theme(digitv2.$_)'

Length of output: 165


Script:

#!/bin/bash
# Description: Search for the keyword "theme" across the entire repository to locate related definitions or configurations.

# Test: Use rg to search for the keyword "theme".
rg 'theme'

Length of output: 209812

react/css/src/digitv2/components/selectDropdownV2.scss (2)

157-175: LGTM! Ensure theme variables are correctly defined.

The changes improve typography consistency and responsiveness. Verify that the theme variables used are correctly defined in the theme configuration.

The code changes are approved.

Run the following script to verify the theme variables:


273-291: LGTM! Ensure theme variables are correctly defined.

The changes improve typography consistency and responsiveness. Verify that the theme variables used are correctly defined in the theme configuration.

The code changes are approved.

Run the following script to verify the theme variables:

Verification successful

Theme Variables Verified: Correctly Defined and Used

The theme variables used in the selectDropdownV2.scss file are part of a broader theme configuration and are correctly defined across the codebase. This ensures consistent styling and responsiveness.

  • Theme variables such as fontFamily, fontStyle, fontWeight, lineHeight, and fontSize are present and used in various SCSS files.
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify that the theme variables used in the SCSS file are correctly defined.

# Test: Search for the theme variable definitions. Expect: Definitions for fontFamily, fontStyle, fontWeight, lineHeight, fontSize.
rg --type scss 'theme(digitv2.fontFamily.sans|digitv2.fontStyle.normal|digitv2.fontWeight.regular|digitv2.lineHeight.lineheight2|digitv2.fontSize.body-s.mobile|digitv2.fontSize.body-s.tablet|digitv2.fontSize.body-s.desktop)'

Length of output: 255


Script:

#!/bin/bash
# Description: Verify that the theme variables used in the SCSS file are correctly defined.

# Test: Search for the theme variable definitions across all files.
rg 'theme(digitv2.fontFamily.sans|digitv2.fontStyle.normal|digitv2.fontWeight.regular|digitv2.lineHeight.lineheight2|digitv2.fontSize.body-s.mobile|digitv2.fontSize.body-s.tablet|digitv2.fontSize.body-s.desktop)'

Length of output: 214


Script:

#!/bin/bash
# Description: Search for any occurrences of 'digitv2' in the codebase to identify theme variable definitions.

# Test: Search for 'digitv2' to find any related theme variable definitions.
rg 'digitv2'

Length of output: 190063

react/css/src/digitv2/components/sidebarV2.scss (1)

64-82: LGTM! Verify theme configuration.

The changes improve the consistency and adaptability of the placeholder text across different display contexts. Ensure that the theme configuration provides the correct values for the added properties.

The code changes are approved.

Run the following script to verify the theme configuration:

react/css/src/digitv2/components/uploaderV2.scss (4)

378-396: LGTM! Verify theme configuration.

The changes improve the consistency and adaptability of the text within the .digit-upload-helptext class across different display contexts. Ensure that the theme configuration provides the correct values for the added properties.

The code changes are approved.

Run the following script to verify the theme configuration:

Verification successful

Theme Configuration Verified

The theme properties are correctly defined and used across the codebase. The configuration appears consistent and correct for the added properties in the .digit-upload-helptext class. No issues were found.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the theme configuration for the added properties.

# Test: Search for the theme configuration. Expect: Correct values for the added properties.
rg --type css -A 5 $'digitv2.fontFamily.sans\ndigitv2.fontStyle.normal\ndigitv2.fontWeight.regular\ndigitv2.lineHeight.lineheight2\ndigitv2.fontSize.body-s.mobile\ndigitv2.fontSize.body-s.tablet\ndigitv2.fontSize.body-s.desktop'

Length of output: 415


Script:

#!/bin/bash
# Description: Verify the theme configuration for the added properties individually.

# Test: Search for each theme configuration property individually.
rg --type css 'digitv2.fontFamily.sans'
rg --type css 'digitv2.fontStyle.normal'
rg --type css 'digitv2.fontWeight.regular'
rg --type css 'digitv2.lineHeight.lineheight2'
rg --type css 'digitv2.fontSize.body-s.mobile'
rg --type css 'digitv2.fontSize.body-s.tablet'
rg --type css 'digitv2.fontSize.body-s.desktop'

Length of output: 40550


134-152: LGTM! Verify theme configuration.

The changes improve the consistency and adaptability of the text within the .drag-drop-text class across different display contexts. Ensure that the theme configuration provides the correct values for the added properties.

The code changes are approved.

Run the following script to verify the theme configuration:

Verification successful

Theme Configuration Verified

The theme configuration for the .drag-drop-text class is correctly set up and consistently used across the codebase. The properties are present and defined in multiple files, supporting the changes made. No further action is required.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the theme configuration for the added properties.

# Test: Search for the theme configuration. Expect: Correct values for the added properties.
rg --type css -A 5 $'digitv2.fontFamily.sans\ndigitv2.fontStyle.normal\ndigitv2.fontWeight.regular\ndigitv2.lineHeight.lineheight2\ndigitv2.fontSize.body-s.mobile\ndigitv2.fontSize.body-s.tablet\ndigitv2.fontSize.body-s.desktop'

Length of output: 415


Script:

#!/bin/bash
# Description: Verify the theme configuration for the added properties by searching each property individually.

# Search for each theme configuration property individually.
properties=(
  "digitv2.fontFamily.sans"
  "digitv2.fontStyle.normal"
  "digitv2.fontWeight.regular"
  "digitv2.lineHeight.lineheight2"
  "digitv2.fontSize.body-s.mobile"
  "digitv2.fontSize.body-s.tablet"
  "digitv2.fontSize.body-s.desktop"
)

for property in "${properties[@]}"; do
  echo "Searching for theme property: $property"
  rg --type css "$property"
done

Length of output: 41924


171-189: LGTM! Verify theme configuration.

The changes improve the consistency and adaptability of the text within the .digit-uploadpopup-label class across different display contexts. Ensure that the theme configuration provides the correct values for the added properties.

The code changes are approved.

Run the following script to verify the theme configuration:

Verification successful

Theme Configuration Verified

The theme properties are correctly defined and used consistently across the codebase, ensuring that the changes to the .digit-uploadpopup-label class will function as intended. No issues found with the theme configuration.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the theme configuration for the added properties.

# Test: Search for the theme configuration. Expect: Correct values for the added properties.
rg --type css -A 5 $'digitv2.fontFamily.sans\ndigitv2.fontStyle.normal\ndigitv2.fontWeight.regular\ndigitv2.lineHeight.lineheight2\ndigitv2.fontSize.body-s.mobile\ndigitv2.fontSize.body-s.tablet\ndigitv2.fontSize.body-s.desktop'

Length of output: 415


Script:

#!/bin/bash
# Description: Verify the theme configuration for each added property individually.

# Search for each theme configuration property in the CSS files.
properties=(
  "digitv2.fontFamily.sans"
  "digitv2.fontStyle.normal"
  "digitv2.fontWeight.regular"
  "digitv2.lineHeight.lineheight2"
  "digitv2.fontSize.body-s.mobile"
  "digitv2.fontSize.body-s.tablet"
  "digitv2.fontSize.body-s.desktop"
)

for property in "${properties[@]}"; do
  echo "Searching for $property:"
  rg --type css "$property"
done

Length of output: 41714


199-217: LGTM! Verify theme configuration.

The changes improve the consistency and adaptability of the text within the .digit-uploader-input class across different display contexts. Ensure that the theme configuration provides the correct values for the added properties.

The code changes are approved.

Run the following script to verify the theme configuration:

Verification successful

Theme Configuration Verified Successfully

The theme configuration for the added properties in the .digit-uploader-input class is correctly set up and used across the codebase. The properties are defined and utilized in various files, confirming their presence and correctness.

  • Properties verified: digitv2.fontFamily.sans, digitv2.fontStyle.normal, digitv2.fontWeight.regular, digitv2.lineHeight.lineheight2, digitv2.fontSize.body-s.mobile, digitv2.fontSize.body-s.tablet, digitv2.fontSize.body-s.desktop.
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the theme configuration for the added properties.

# Test: Search for the theme configuration. Expect: Correct values for the added properties.
rg --type css -A 5 $'digitv2.fontFamily.sans\ndigitv2.fontStyle.normal\ndigitv2.fontWeight.regular\ndigitv2.lineHeight.lineheight2\ndigitv2.fontSize.body-s.mobile\ndigitv2.fontSize.body-s.tablet\ndigitv2.fontSize.body-s.desktop'

Length of output: 415


Script:

#!/bin/bash
# Description: Verify the theme configuration for the added properties by searching for each property individually.

# Test: Search for each theme configuration property individually.
properties=(
  "digitv2.fontFamily.sans"
  "digitv2.fontStyle.normal"
  "digitv2.fontWeight.regular"
  "digitv2.lineHeight.lineheight2"
  "digitv2.fontSize.body-s.mobile"
  "digitv2.fontSize.body-s.tablet"
  "digitv2.fontSize.body-s.desktop"
)

for property in "${properties[@]}"; do
  echo "Searching for $property"
  rg --type css "$property"
done

Length of output: 41700

@Swathi-eGov Swathi-eGov merged commit d78e2d4 into develop Aug 27, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant