Skip to content

[Ionic v4] Button overflow always hidden #14839

Closed

Description

@peterpeterparker

Ionic Info
@ionic/angular: "4.0.0-alpha.11"

Describe the Bug
In my productive Ionic v3 app, I style the button in order to display a text under them without taking space. This allows me for example to use a grid and to have the actions centered in the middle of the screen and the text under

With Ionic v4 it looks like that the overflow on buttons is always set to hidden

 .button-native {
   overflow: hidden;
}

Expected Behavior
Due to the use of shadow-root I would except to have the ability to set a variable to modify that attribute respectively the overflow of buttons should be stylable to visible

Side note
I really already spent many hours on that one, maybe I'm just too dumb to understand css and shadow root and I would be really, really, happy to hear it

Additional Context
Ionic v3:

capture d ecran 2018-07-23 a 21 37 09

Ionic v4:

capture d ecran 2018-07-23 a 21 32 12

Activity

  1. self-assigned this
    on Jul 24, 2018
  2. peterpeterparker commented on Jul 24, 2018

    @peterpeterparker
    ContributorAuthor

    @manucorporat thx for adding overflow that helps. I actually missed that contain: inherit should also be set instead of contain: content. could you also add contain as variable of the button?

    plz accept my apologies for not having noticed it in the first place, but after that, could confirm I will be able to achieve the goals of overflow text on buttons

    capture d ecran 2018-07-24 a 20 40 16

  3. peterpeterparker commented on Jul 27, 2018

    @peterpeterparker
    ContributorAuthor

    I have opened a new issue for this final improvement regarding this subject

    #14899

  4. ionitron-bot commented on Sep 1, 2018

    @ionitron-bot

    Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

  5. locked and limited conversation to collaborators on Sep 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions