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

[Severity] Showing black border after page refreshed #848

Closed
Paper-Folding opened this issue Apr 3, 2022 · 2 comments · Fixed by nextcloud-libraries/nextcloud-vue#3490
Closed

Comments

@Paper-Folding
Copy link

Paper-Folding commented Apr 3, 2022

Here I write a quick code sandbox for this issue(the link provided below might sometimes got unstable and show you an import module error, just refresh the page should be ok), can anyone pls help me:
https://codesandbox.io/s/floating-vue-black-border-ofd718?file=/src/App.vue

Normal state
image

After page refreshed:
image

My code(simplified)

<template>
    <VMenu
        strategy="fixed"
        :triggers="['focus']"
        :showTriggers="triggers => [...triggers, 'hover', 'click']"
        :hideTriggers="triggers => [...triggers, 'click']"
        :skidding="-40"
    >
        <img :src="avatarSrc" class="avatar" />
        <template #popper>
            <div>Nothing special</div>
        </template>
    </VMenu>
</template>

<script>
import { Menu as VMenu } from 'floating-vue';
import "floating-vue/dist/style.css";
export default {
    components: {
        VMenu
    }
}
</script>

Happening every where:
image

Plus
I'm using bootstrap 5 style sheet from global import

Help
Is it only me has this issue?

@Paper-Folding Paper-Folding changed the title Showing black border after page refreshed [Severity] Showing black border after page refreshed Apr 3, 2022
@Akryum
Copy link
Owner

Akryum commented Apr 22, 2022

This is due to improved a11y of floating-vue. What you are seeing is the focus outline rendered by the browser. To remove it:

.v-popper__popper {
  outline: none;
}

@AlotOfBlahaj
Copy link

same question.
Thank you

This is due to improved a11y of floating-vue. What you are seeing is the focus outline rendered by the browser (浏览器) . To remove it:

.v-popper__popper {
  outline: none;
}

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 a pull request may close this issue.

3 participants