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

Fix/2432 add field tooltip styling #2540

Merged
merged 14 commits into from
Apr 11, 2024
Merged

Conversation

jomarmontuya
Copy link
Contributor

@jomarmontuya jomarmontuya commented Feb 7, 2024

closes #2432

image

@jomarmontuya jomarmontuya self-assigned this Feb 7, 2024
@jomarmontuya jomarmontuya added the enhancement Improvement to an existing feature label Feb 7, 2024
@jomarmontuya jomarmontuya added the ready PR is complete and ready for deployment label Feb 8, 2024
@jomarmontuya
Copy link
Contributor Author

jomarmontuya commented Feb 13, 2024

Screenshot 2024-02-13 at 8 33 52 AM

@agalin920 yes indeed the Typograhpy has default text.primary color however the typography color in this approach are being overruled by the parent root element. Which in the screenshot above is the listitem root.

another way to do this is we will set disableTypography and pass the typography component as children. In ths way we don't need to inforce the text.primary but we will pass typography as child element

@agalin920
Copy link
Contributor

@jomarmontuya is that intentional? If so we shouldn't change it. If not we should do a theme change.

Cc: @zcolah

@zcolah
Copy link

zcolah commented Feb 14, 2024 via email

@jomarmontuya
Copy link
Contributor Author

@agalin920 By default the typography inside listItem is not styled at all and it will inherit whatever color set to the parent. I tihnk this is a common issues with this ListItem might be a bug from MUI

Source -> https://stackoverflow.com/questions/43975839/material-ui-styling-text-inside-listitemtext

everybody uses this same approach to override the color by style props or pas Typography as children element.

@zcolah
Copy link

zcolah commented Feb 20, 2024

@jomarmontuya
Copy link
Contributor Author

@zcolah
image

The description text is currently using body3 and line height looks correct at 18px based on the figma design. Should we lower this by overriding default styles?

@jomarmontuya
Copy link
Contributor Author

jomarmontuya commented Feb 26, 2024

@zcolah

image

A pixel difference you found in the list indentation seems only to occur on laptop devices viewport, as this is looks fine on my end.

@jomarmontuya
Copy link
Contributor Author

jomarmontuya commented Feb 26, 2024

@zcolah I left a comment on the figma link you provided please review once you have time, Thank you!

@zcolah
Copy link

zcolah commented Feb 26, 2024

@jomarmontuya See this loom that discusses the VQA issues
https://www.loom.com/share/30d26dc348f3497eaa03b4754cf99db4

@zcolah
Copy link

zcolah commented Feb 26, 2024

A pixel difference you found in the list indentation seems only to occur on laptop devices viewport, as this is looks fine on my end.

indentation issue is discussed in the loom video, not too big of an issue to fix

@jomarmontuya
Copy link
Contributor Author

image

@jomarmontuya
Copy link
Contributor Author

@zcolah I figure out what the problem is, it's the element using span tag instead of p tag

@jomarmontuya
Copy link
Contributor Author

@agalin920

Please take a look at this theme updates related to this PR -> zesty-io/material#89

@jomarmontuya
Copy link
Contributor Author

@agalin920 after further digging into this problem, it apears that body3 variant is the only one being converted to span with inline styling

see below.
image

body3 looks like an extension we created and does not follow MUI default p tag for Typography.

solution I can think of is.

  1. Update the body3 to be default P tag same as body1 and body2.
  2. Update the body3 to have display inline-block.

@agalin920
Copy link
Contributor

@agalin920 after further digging into this problem, it apears that body3 variant is the only one being converted to span with inline styling

see below.

image

body3 looks like an extension we created and does not follow MUI default p tag for Typography.

solution I can think of is.

  1. Update the body3 to be default P tag same as body1 and body2.

  2. Update the body3 to have display inline-block.

@jomarmontuya Would prefer them also to be p tags but if there is a limitation for that we can go with the inline-block solution

@jomarmontuya jomarmontuya requested a review from agalin920 March 4, 2024 23:19
agalin920
agalin920 previously approved these changes Mar 7, 2024
@jomarmontuya
Copy link
Contributor Author

@shrunyan

please see related PR to move this for VQA -> zesty-io/material#90

@shrunyan
Copy link
Contributor

please see related PR to move this for VQA -> zesty-io/material#90

PR#90 is merged and available in https://www.npmjs.com/package/@zesty-io/material/v/0.13.0

@jomarmontuya jomarmontuya marked this pull request as draft March 21, 2024 22:57
@agalin920 agalin920 marked this pull request as ready for review April 1, 2024 22:18
@shrunyan shrunyan changed the base branch from master to dev April 1, 2024 23:00
@shrunyan shrunyan dismissed agalin920’s stale review April 1, 2024 23:00

The base branch was changed.

@shrunyan shrunyan enabled auto-merge April 2, 2024 00:12
@shrunyan shrunyan disabled auto-merge April 4, 2024 19:45
@shrunyan shrunyan enabled auto-merge (squash) April 4, 2024 19:46
@agalin920 agalin920 self-requested a review April 9, 2024 20:01
agalin920
agalin920 previously approved these changes Apr 9, 2024
@shrunyan shrunyan disabled auto-merge April 11, 2024 18:25
@shrunyan shrunyan merged commit ba386eb into dev Apr 11, 2024
1 check failed
@shrunyan shrunyan deleted the fix/2432-add-field-tooltip-styling branch April 11, 2024 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement to an existing feature ready PR is complete and ready for deployment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Schema: Add Field Tooltip Styling has multiple issues
4 participants