Skip to content

Solution for hiding a disabled button #60

Open
@Gys

Description

@Gys

Maybe this is useful to others as well. Its a style that I use to hide buttons that are disabled. I use it for disabledStyle.
The hidden button will still take a little space though. Not sure why.

    buttonDisabled: {
      width: 1, 
      height: 1,
      margin: 0, 
      borderColor: 'rgba(0,0,0,0)', // transparent
      backgroundColor: 'rgba(0,0,0,0)'
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions