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

Add option safari (and firefox?) #1750

Merged
merged 5 commits into from
Mar 2, 2023
Merged

Add option safari (and firefox?) #1750

merged 5 commits into from
Mar 2, 2023

Conversation

TheSlimvReal
Copy link
Collaborator

Visible/Frontend Changes

  • There were some problems about adding a new option in safari which this solves.
  • Multi enum select is correctly reset on cancel

Architectural/Backend Changes

--

@github-actions
Copy link

github-actions bot commented Mar 1, 2023

Deployed to https://pr-1750.aam-digital.net/

Copy link
Member

@sleidig sleidig left a comment

Choose a reason for hiding this comment

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

Couldn't test for the target devices but code looks good 👍

@@ -142,6 +143,7 @@ export class BasicAutocompleteComponent<O, V = O>
let filteredOptions = this._options;
this.showAddOption = false;
clearTimeout(this.addOptionTimeout);
setTimeout(() => (this.showAddOption = false), 100);
Copy link
Member

Choose a reason for hiding this comment

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

observing actual users add options, I am tending towards removing the delay for new options again. It was complex enough for a non-savvy user to figure out they can do this without things moving and changing. Maybe instead highlight the "Add new" option with different color a bit more than already?

Sorry, somewhat off-topic here actually. Just popped into my mind.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Got point. I removed the timeout and instead visually highlighted the add option text. Please have a look

Copy link
Member

Choose a reason for hiding this comment

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

Nice. I like it.

In terms of UI logic, maybe we should use the blue accent color though (similar to add buttons above lists, etc.)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I get the point but it does not look good with the blue color.

@sonarcloud
Copy link

sonarcloud bot commented Mar 2, 2023

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
0.0% 0.0% Duplication

@TheSlimvReal TheSlimvReal merged commit 7a3652d into master Mar 2, 2023
@TheSlimvReal TheSlimvReal deleted the add_option_safari branch March 2, 2023 15:36
@aam-digital-ci
Copy link
Collaborator

🎉 This PR is included in version 3.19.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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.

3 participants