Skip to content

[OverflowToolbarToggleButton | Styling]: can't apply custom style to visible text #6808

@gaeun-gabie

Description

@gaeun-gabie

Describe the bug

The OverflowToolbarToggleButton component doesn't have a separate tag for the text, and there is no way to apply styling specifically to the text. We tried adding a wrapper around the text, which helped with updating the styling. However, there was an issue with the button: its focus is on the label during the mouse down event, so the button doesn't update to the active state (i.e., the button colour doesn't change to indicate that it's being pressed). Also, the button state was successfully updated to active state.

can't repro on OverflowToolbarButton

Isolated Example

No response

Reproduction steps

  1. create a button using OverflowToolbarToggleButton component
  2. add span around button label
  3. long press the button label (if you click on icon or empty area, it will change button colour. Also, if you cant repro, move the focus away from the button)
    ...

Expected Behaviour

Should change colour to indicate it's being pressed

Screenshots or Videos

No response

UI5 Web Components for React Version

1.29.14

UI5 Web Components Version

1.24.13

Browser

Chrome

Operating System

ios

Additional Context

No response

Relevant log output

Organization

No response

Declaration

  • I’m not disclosing any internal or sensitive information.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions