-
Notifications
You must be signed in to change notification settings - Fork 19
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
Sandbox css fix on tooltips #1636
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@egovernments/digit-ui-css", | ||
"version": "1.8.2-beta.47", | ||
"version": "1.8.2-beta.48", | ||
"license": "MIT", | ||
"main": "dist/index.css", | ||
"author": "Jagankumar <[email protected]>", | ||
|
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 |
---|---|---|
|
@@ -1028,3 +1028,7 @@ digit-card-text.center { | |
color: #363636; | ||
line-height: 1.6; | ||
} | ||
|
||
.tooltiptext{ | ||
width: 30rem !important; | ||
} |
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
<link | ||
href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;500;700&family=Roboto:wght@400;500;700&display=swap" | ||
rel="stylesheet" type="text/css" /> | ||
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected].47/dist/index.css" /> | ||
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected].48/dist/index.css" /> | ||
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected]/dist/index.css"/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="theme-color" content="#00bcd1" /> | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧹 Nitpick (assertive)
Consider adding a local fallback for CDN resources.
To ensure the application remains functional even if the CDN is unavailable, consider implementing a fallback mechanism.
Example implementation:
Add integrity hash for enhanced security.
The CDN stylesheet link should include an integrity hash to prevent malicious code injection through CDN compromises.
Apply this change:
Note: Replace
[HASH]
with the actual SHA-384 hash of the CSS file.💡 Codebase verification
Based on the search results, I can now provide a definitive response about the tooltip width change impact. The codebase shows that:
30rem !important
insandbox.scss
tooltip.scss
show that tooltips are positioned absolutely and have responsive behavior with opacity transitionsThe 30rem width (approximately 480px) could cause layout issues on mobile devices with smaller viewport widths.
Here are the specific concerns:
!important
will override any responsive adjustments🔗 Analysis chain
Verify the tooltip width change impact.
The version update includes a
.tooltiptext
class withwidth: 30rem !important
. Please ensure this change doesn't cause layout issues on smaller screens.Let me try a different approach to search for tooltip-related code and styles.
This should help us find any tooltip-related code regardless of the file extension and also list any CSS files that might contain tooltip styles.
Based on the search results, I can see that the tooltip styles are defined in multiple files, with the main tooltip styles in
micro-ui/web/micro-ui-internals/packages/css/src/pages/employee/tooltip.scss
andmicro-ui/web/micro-ui-internals/packages/css/src/pages/employee/sandbox.scss
. Let me check the specific tooltip width implementation.🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 290
Script:
Length of output: 79279
Script:
Length of output: 20082