vue-js-modal icon indicating copy to clipboard operation
vue-js-modal copied to clipboard

Unable to add border radius to the modal

Open eakenbor opened this issue 4 years ago • 3 comments

Problem:

I am unable to add border radius to the modal. I have tried using classes but to no avail. Please can anyone help me with this?

Version:

Example & screenshots:

I have checked stackoverflow for solutions and 100% sure that this issue is not not related to my code.

eakenbor avatar Feb 12 '21 17:02 eakenbor

After banging my head around for hours I finally figured out how to overwrite the .vm--modal CSS. It's actually VERY simple. Just add !important to the CSS (make sure the .modal-override class is global and not scoped)

<modal name="foo" classes="modal-override">...</modal>
.modal-override
    background #0008 !important
    border-radius 20px !important
    padding 10px

atourkow avatar Apr 16 '21 21:04 atourkow

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 26 '21 03:06 stale[bot]

For example, try this:

<modal
      name="modal_name"
      styles="border-radius: 30px; color: #FFF; background-color: #FBAE31; padding: 4% 5%; position: relative;"
      width="72.46%"
      height="25.22%"
      :pivotY="0.29"
      :clickToClose="false">
    <p>text</p>
</modal>

smoilovskiy avatar Jan 03 '22 21:01 smoilovskiy