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(autosuggest): add default min-width to autosuggest when loading #348

Merged
merged 3 commits into from
Jun 8, 2022

Conversation

Nantawat-Poothong
Copy link
Contributor

@Nantawat-Poothong Nantawat-Poothong commented Jun 2, 2022

Description

In case autosuggest asynchronous with mask, If we didn't set default min-width for autosuggest, the result when opening autosuggest is the mask didn't show, because autosuggest width doesn't set.

  • Add css min-width to autosuggest when loading
  • Fix backdrop opacity

Fixes # (issue)
https://jira.refinitiv.com/browse/ELF-1845

@Nantawat-Poothong Nantawat-Poothong changed the title style(autosuggest): add default min-width to autosuggest when loading fix(autosuggest): add default min-width to autosuggest when loading Jun 2, 2022
@@ -52,7 +53,7 @@

[part=backdrop] {
background-color: @overlay-background-color;
opacity: @overlay-opacity;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did you override this?

Copy link
Collaborator

Choose a reason for hiding this comment

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

The style looks wrong to me. Not sure if reuse overlay-opacity here is a right choice. I mean we may keep the same opacity but change background color instead if it's better solution.

Screen Shot 2565-06-06 at 17 32 12

Copy link
Contributor

Choose a reason for hiding this comment

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

It is wrong all together: being the loader too large and the background too grey. Perhaps we need a proper solution from Design/UX on how to cover this case (and all other cases with asynchronous popup loading). This code was just migrated from v3 where it made more sense.

Copy link
Contributor

Choose a reason for hiding this comment

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

maybe UX can say that entire screen needs to be greyed out, so we can deprecated autosuggest loading :)

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'll go with this small improvement. It's better than today anyway. You know we would need to wait very long until they take an action. It means that users won't see any improvement until then :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated!, I have revert override backdrop opacity :)

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jun 7, 2022

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8bcb04d
Status: ✅  Deploy successful!
Preview URL: https://a71a06e4.refinitiv-ui.pages.dev

View logs

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 8, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@Nantawat-Poothong Nantawat-Poothong merged commit 0bbffb2 into v6 Jun 8, 2022
@Nantawat-Poothong Nantawat-Poothong deleted the style/autosuggest-loading branch June 8, 2022 04:37
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.

5 participants