-
Notifications
You must be signed in to change notification settings - Fork 16
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
Update on-background attribute for ease of use in Vue 3 #307
Comments
@michael-iden To avoid a breaking change, you can probably use |
@Niznikr It works! Thanks for the great suggestion! |
@michael-iden is a fix still needed for this? |
@chrisjbrown I think we still want to fix this and include #308 in the next set of breaking changes. Looks like Dane already tagged issue/PR with the v13 milestone and I can make sure it gets included |
FWIW-- Using Nuxt 3 I couldn't get it working with |
@michael-iden is this issue still reproducible or are we able to close it now? I'm not too familiar with Vue to test it locally 😅 |
@mtorres3 I think this is still technically an issue until pharos 14 is released. Its handled by the PR you merged here #578 but i don't know if we are closing issues as we merge the relevant PRs or close issues once the feature is publicly available in the main release channel. @daneah did you have any preference on how we manage issues where the work its done and we are in a holding pattern for the release? |
@michael-iden I much prefer to close issues as a fix for them is merged, regardless of whether that fix has yet been released—it becomes difficult to do bookkeeping otherwise. |
Expected behavior
When
on-background
attribute is applied to the button, the color scheme of the button is properly reflectedActual behavior
on-background
attribute is removed from the DOM, likely by Vue 3, possibly because it starts withon*
and Vue 3 interprets that to be an event listener.Steps to reproduce the issue
on-background
set on the elementon-background
is removed from the DOMScreenshots or code
I tried making a codepen/codesandbox/stackblitz but each environment was having various issues. I'll keep trying to get a working example.
Screen.Recording.2022-02-09.at.12.23.57.PM.mov
Pharos version
11.2.1
Your environment
Additional information
I couldn't find anything in the Vue3 docs where this was happening but the button works perfectly well in the same code on a Vue2 app.
The text was updated successfully, but these errors were encountered: