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

oh-icon doesn't send command when using iconify icon #2664

Open
jimtng opened this issue Jul 11, 2024 · 0 comments
Open

oh-icon doesn't send command when using iconify icon #2664

jimtng opened this issue Jul 11, 2024 · 0 comments
Labels
bug Something isn't working main ui Main UI

Comments

@jimtng
Copy link
Contributor

jimtng commented Jul 11, 2024

This works and sends a command to the given item:

                    - component: oh-icon
                      config:
                        icon: light
                        action: toggle
                        actionCommand: ON
                        actionCommandAlt: OFF
                        actionItem: Item1
                        style:
                          height: 2.5rem
                          opacity: "=@'Item1' === 'ON' ? '100%' : '30%'"

This doesn't work, it doesn't send a command to the item when clicked:

                    - component: oh-icon
                      config:
                        icon: iconify:weui:tv-outlined
                        action: toggle
                        actionCommand: ON
                        actionCommandAlt: OFF
                        actionItem: Item1
                        style:
                          height: 2.5rem
                          opacity: "=@'Item1' === 'ON' ? '100%' : '30%'"

The only thing different is the icon. The first one is using oh icon, the other one uses iconify.

Also the iconify shows up tiny in size. I had to apply other tweaks to make it sized the same as the classic icon.

@jimtng jimtng added bug Something isn't working main ui Main UI labels Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working main ui Main UI
Projects
None yet
Development

No branches or pull requests

1 participant