• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

SVG buttons clickable area with overlaping objects in custom states

Community Beginner ,
Apr 03, 2024 Apr 03, 2024

Copy link to clipboard

Copied

Hi,

I'm stuck with this problem and I can't really work out whether I'm trying to do something impossible or whether I'm just setting it up wrong. Perhaps you'll have some advice to clarify things?

I use a lot of SVG buttons for which I define custom states to which I add other design elements. As long as these design elements don't overlay the clickable area, everything's fine. But if they overlap the clickable zone, whether they're placed in front or behind it, I get interference with the clickable zone.

 

So is there a way to preserve the clickable area while having other objects superimposed (whether smartshapes as in the example below or other imported SVGs)?
I'm using Captivate 11.8 with fixed layout project.

 

Capture d’écran 2024-04-03 à 16.56.03.png

Views

251

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 03, 2024 Apr 03, 2024

Copy link to clipboard

Copied

Term used in Captivate is 'non-responsive' project, because it doesn't need to be a fixed layout; you can still publish as scalable HTML.

Still on that buggy 11.8 release? That is a pity.

It used to be different in the past, but an interactive object will remain interactive even if it is covered with a non-interactive object. If you want to  take out the interactivity of that first object, you need to disable it which is easily done with an advanced or a shared action. I don't know exactly what you want to achieve here?

The SVG used as button is the only possible button which allows to restrict its clickable area to the image itself, all other button types have the surrounding bounding box as clickable area. More in:

https://blog.lilybiri.com/overvew-6-button-types

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 03, 2024 Apr 03, 2024

Copy link to clipboard

Copied

"Still on that buggy 11.8 release? That is a pity." --> Unfortunately, yes. And well noted for the 'non-responsive' 😉

For the SVG buttons, the goal is just to have a simple button with normal behaviour. 

This one is just a simple one as example, others are more 'designed'. My imported SVG is just use as a design background and I'm adding the smartshape in the custom states to put the text. But when I'm building this like that I have a buggy behaviour. When I click exactly on the text (see screen record) the button 'react' but doesn't fire the action. When I click directly on the SVG part of the button (not on letters), the button reacts correctly and fire the action to change the state of the button.

It seems that the smartshape with the text interfere in a way or another with the button.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 03, 2024 Apr 03, 2024

Copy link to clipboard

Copied

LATEST

I learned to avoid stacking objects like you did here. Use a shape button (my favourite) to achieve the design you want. It is the most versatile button and is originally a vector image. Too bad that the never allowed to create shapes as a roundtripping with Illustrator. If you have time to look at the blog about the buttons, scroll till the end for 'my favourites'. You can even use the circular shape for your custom radio buttons. 

Careful when you start with quizzes, I fear you'll get problems if you don't know exactly how quizzes work in Captivate, its limitations and possibilities. 90% of my consultancy jobs were linked to quiz problem solving.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources