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

TokenizingTextBox remaining issues #3289

Open
9 of 15 tasks
michael-hawker opened this issue May 16, 2020 · 13 comments
Open
9 of 15 tasks

TokenizingTextBox remaining issues #3289

michael-hawker opened this issue May 16, 2020 · 13 comments
Assignees
Labels
bug 🐛 An unexpected issue that highlights incorrect behavior
Milestone

Comments

@michael-hawker
Copy link
Member

michael-hawker commented May 16, 2020

Describe the bug

Follow-ons from #3247 review.

  • P1 Figure out how to isolate our custom style from WinUI style changes - Michael

    • Extra padding below tokens in style (looks like TextBox is pushing box taller?) - @JustinXinLiu I haven't been able to figure out where this is from as it was working ok in our test environment, would you have time next week to take a look? Thanks!
    • This could also be the textbox's vertical alignment, but I've seen three different cases across different samples we've had, so I'm more confused now. Update I think this is due to extra styling being applied by having WinUI 2.x included in the package. I noticed in Update to WinUI 2.4 #3291 that WinUI 2.4 applied a border around the textbox, so there's a problem here of how we isolate our custom style from the WinUI updates.
  • AutoSuggestBox sizing issue (wrap to 2nd line, then remove token, query icon is now clipped as autosuggestbox doesn't resize, calling update is ignored, can repro with standard AutoSuggestBox, did I file a WinUI issue? need to find workaround)? - Michael (apparently, this works fine with keyboard input, it's only when clicking the remove on the token with the mouse that it occurs???)

  • Update code to use interface to do check for tokens vs. our specific implementation (i.e. replace PretokenStringContainer with ITokenStringContainer)?

  • P2 E-mail sample doesn't work in Release Mode???

  • P2 Keyboard token duplication issue

  • When fixed height and scroll out of view, border is behind tokens (see image below)

  • Update InterspersedObservableCollection to accept List

  • P2 Rounded corners on Tokens/Box? (had issue importing WinUI styles for this with conditional xaml before)

  • P2 Show red outline on text not parsed as token when focus lost

  • P1 Expose a object[] Tokens and a string[] Text type properties? (do we need SelectedText as well?)

    • We should audit the properties and make sure we don't have 'extras' which are no longer used too.
  • P1 Not enough padding on Right-side (partly issue with panels and ListView)

  • Missing QueryIcon (forgot about this, that we need to update it to share or only have one on the last one.)

@michael-hawker michael-hawker added the bug 🐛 An unexpected issue that highlights incorrect behavior label May 16, 2020
@michael-hawker michael-hawker added this to the 6.1 milestone May 16, 2020
@michael-hawker
Copy link
Member Author

For the release mode issue:
image

@michael-hawker
Copy link
Member Author

Good news is that the People Picker was quick to test out with the new control:

image

It apparently didn't inherit from the control though, so we should modify that to better expose the collections/events directly. Will need to do that next for more testing.

You'll note in the screenshot though that the token alignment looks alright, but the textbox alignment is a bit high, which is different from the Sample App (so wondering if Sample App has a style that's interfering as well?)

@ghost ghost added the in progress 🚧 label May 26, 2020
@michael-hawker
Copy link
Member Author

michael-hawker commented May 26, 2020

Just found out that the weird styling for the padding I was seeing was probably being inherited by changes made to styles in WinUI. We need to figure out how to isolate ourselves from these changes, as otherwise the control will look different if the developer is using WinUI in their project or not (as it's not required for the control, we just add it in to the Sample App).

This explains why it was looking fine in our test environment, but then suddenly looked different in the Sample App.

FYI @ranjeshj @stmoy

@mdtauk
Copy link

mdtauk commented May 28, 2020

Don't forget to test these in a Dark Theme, as the Textboxes no longer remain in Light style when focused

@michael-hawker
Copy link
Member Author

Thanks @mdtauk, I'm pretty sure I accounted for that already as part of another change to align to that update (as we have our own focus visuals mimicking that of a textbox). I'll double-check again though as I update the styles elsewhere.

@marcpems marcpems mentioned this issue May 28, 2020
7 tasks
@michael-hawker
Copy link
Member Author

Have a solution for the WinUI padding, but hit another issue with how sizes of Icons work with styles (filed another issue here). Will need to think about how to work around this or possibly copy the resource around and listen for parent updates to modify...?

@michael-hawker
Copy link
Member Author

Found a new issue with ScrollViewer clipping:

image

Might be because FocusVisual is behind the panel

@michael-hawker
Copy link
Member Author

michael-hawker commented May 30, 2020

Huh, weird issue with filtering and keyboard in top sample box.

  1. Type 'a'
  2. Down Arrow
  3. Select 'Account'
    4 Type 'a' again
  4. Hit 'Enter'

image

Now have a duplicate item, of course if you then click the 'X' on the 2nd item the first item is removed (clearer if you add another different token between them, you can get the same repro). This also breaks keyboard navigation.

Not sure if this is because of how we're filtering or an issue with AutoSuggestBox itself or timing issue???

There should be someone to change the selection after filter?

@michael-hawker
Copy link
Member Author

Thought I had a solution for the wrapping/icon issue when tokens are removed; however, it's only because it works fine with the keyboard. It only repros with the mouse for me. I did eliminate if Release mode made a difference, still reprod with the mouse.

@michael-hawker
Copy link
Member Author

Layout issue:

image

When you click to remove a token:

image

(notice the icon isn't stretched, ignore the text being centered that's an issue with my attempt at a fix)

@michael-hawker
Copy link
Member Author

Layout Issue is being resolved by #3319

@michael-hawker michael-hawker mentioned this issue Jun 3, 2020
12 tasks
@Kyaa-dost Kyaa-dost removed this from the 6.1 milestone Jun 22, 2020
@michael-hawker michael-hawker added this to the 7.0 milestone Jun 23, 2020
@michael-hawker michael-hawker removed this from the 7.0 milestone Mar 2, 2021
@michael-hawker michael-hawker added this to the 7.1 milestone Mar 2, 2021
@ghost ghost removed the in progress 🚧 label Mar 2, 2021
@marcelwgn
Copy link
Contributor

Can we add a little padding to the right of the text so it doesn't sit flush with the close button on hove:

Screenshot of TokenizingTextBox token on hover where text is touching the button border when hovered

@michael-hawker
Copy link
Member Author

@marcpems any known issues being reported we should be aware of or has everything seemed good on your side?

@michael-hawker michael-hawker modified the milestones: 7.1, 7.2/8.0? Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An unexpected issue that highlights incorrect behavior
Projects
None yet
Development

No branches or pull requests

5 participants