8000
  • feat(Text area): Add resize disable feature by tlabaj · Pull Request #11383 · patternfly/patternfly-react · GitHub
    [go: up one dir, main page]

    Skip to content

    feat(Text area): Add resize disable feature#11383

    Merged
    mfrances17 merged 4 commits intopatternfly:mainfrom
    tlabaj:teaxtarea_resize
    Jan 14, 2025
    Merged

    feat(Text area): Add resize disable feature#11383
    mfrances17 merged 4 commits intopatternfly:mainfrom
    tlabaj:teaxtarea_resize

    Conversation

    @tlabaj
    Copy link
    Contributor
    @tlabaj tlabaj commented Jan 7, 2025

    What: Closes #11130

    @tlabaj tlabaj requested review from a team, mfrances17 and thatblindgeye and removed request for a team January 7, 2025 17:14
    @patternfly-build
    Copy link
    Collaborator
    patternfly-build commented Jan 7, 2025

    Copy link
    Contributor
    @thatblindgeye thatblindgeye left a comment

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    This looks good, just non-blocking comment below. Could we also add a test that checks that no additional class is added for the new orientation value? Looks like we're also missing a test that checks for the pf-m-resize-both modifier class when orientation is both, but that can be a followup if need be.

    vertical = 'vertical',
    both = 'both'
    both = 'both',
    disabled = 'disabled'
    Copy link
    Contributor

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    Can't recall if there was a conversation regarding this, but was using "none" considered instead of "disabled", to match the CSS value that would normally be used? Not a blocker since "disabled" is still accurate, just wondering if people may think a modifier class will be applied like in other instances odf a disabled modifier.

    Copy link
    Contributor Author

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    I actually debated between the two names. I started with none. I can change it back.

    @tlabaj tlabaj requested a review from thatblindgeye January 8, 2025 16:56
    Copy link
    Contributor
    @mfrances17 mfrances17 left a comment

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    👍 changes look good and tested fine, nice job.

    i'm on the fence on whether we should add a specific example for it, since we do call out horizontal and vertical resize orientations explicitly. that makes it seem like we should have examples for all available options, especially none which i personally think will be a very popular use case (one could make a strong case that unresizable should really be the default). up to you though, not enough for me to not approve.

    @mfrances17
    Copy link
    Contributor

    @tlabaj thanks for adding the example, looks good... merging

    @mfrances17 mfrances17 merged commit 9868ab5 into patternfly:main Jan 14, 2025
    mattnolting pushed a commit to mattnolting/patternfly-react that referenced this pull request Feb 14, 2025
    * feat(Text area): Add reasize disable feature
    
    * change disabled to none
    
    * update tests
    
    * add resize none example
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Labels

    None yet

    Projects

    None yet

    Development

    Successfully merging this pull request may close these issues.

    TextArea - add support for disabling resize

    4 participants

    0