-
-
Notifications
You must be signed in to change notification settings - Fork 56
The button is wider than the context menu when not using bootstrap-vue #26
Comments
If someone can confirm that this is an error in the library and not in my usage of it, I can fix it in a PR. |
@guyguy2001 This is interesting. I have not experienced this issue when using this library in my project, however, I submitted a different issue here and in the link I used to reproduce that issue, i'm experiencing this issue. |
Weird... |
@guyguy2001 Ah... In my project I'm doing this: * {
box-sizing: border-box;
} Which fixes the issue. |
I just forked the repo, and it seems that it works in their example file (https://github.com/rawilk/vue-context/blob/master/test/index.html), because they use bootstrap-vue. |
@guyguy2001 The module should work fine without bootstrap. If you look closely, you'll see I'm not using bootstrap-vue, but just the style sheet from bootstrap itself. If you look at the documentation site (https://vue-context.com) in chrome, you'll notice the menu actually receives the blue outline like you are describing. Since I focus the menu when opening it, it receives the outline from the browser stylesheets. This may be desireable for some people, but for most they probably don't want that outline. I'll be publishing a patch update later that removes that outline when focusing the menu and also the outline from any |
Description
When I use the context menu in a project, the buttons seem to be wider than the context menu holding them:
image
In addition, when running in chrome, there is a blue outline to the menu.
Steps to Reproduce
Either clone https://github.com/guyguy2001/vue-context-reproduction and run it via
npm i
,npm run serve
, or:vue create vue-context-reproduction
(I used the default babel + eslint setup).App.vue
orHelloWorld.vue
, and modify them to fit inside the component (Make sure to remove theli
styling from the example component).npm install vue-context
,npm install
,npm run serve
.Expected behavior: [What did you expect to happen]
A normal context menu appearing, like in the example screenshots.
Actual behavior: [What actually happens]
The context menu appears, but has a blue outline (Only on chrome), and the buttons are wider than the context box, meaning that the text is centered weirdly, and when I hover over a button, its background is too wide.
Reproduces how often: [What percentage of the time does it reproduce?]
The problem occurs consistantly, whenever I run the project.
Version
Version: 4.0.1 (doesn't happen on 3.4.0)
Chrome: Version 74.0.3729.169 (Official Build) (64-bit)
Firefox: 64.0 (64-bit)
The text was updated successfully, but these errors were encountered: