microsoft / powerbi-desktop-samples

Power BI Desktop sample files for the monthly release. Here you can find the PBIX files used in the monthly release videos.
MIT License
1.46k stars 883 forks source link

actionButton "press" state not applying in Desktop #83

Open Ralle8370 opened 1 year ago

Ralle8370 commented 1 year ago

Since @yelper pointed out the different states for actionButton in #50 , I want to point out that neither pressed or press (as it used to be) have any effect inside Power BI Desktop - the visual defaults back to the default state.

I am currently on Power BI Desktop for Report Server (May 2023), so I should ask if others experience the same issue?

Example

(...)
        "actionButton": {
            "*": {
                "shadow": [
                    {
                        "show": true
                    },
                    {
                        "$id": "default",
                        "transparency": 0,
                        "shadowBlur": 20,
                        "shadowPositionPreset": "center"
                    },
                    {
                        "$id": "hover",
                        "transparency": 0,
                        "shadowBlur": 20
                    },
                    {
                        "$id": "press",
                        "transparency": 95,
                        "shadowBlur": 25
                    },
                    {
                        "$id": "disabled",
                        "transparency": 20,
                        "shadowBlur": 0
                    }
                ]
            }
        }
yelper commented 11 months ago

The correct selector should be "selected", not "press".

I'm aiming to push an update to suggest available $id values in the December release of the schema; here's a sneak peak of what it'll look like.

image