• 
      

    Fix some display issues with the ListEditWidget.

    Review Request #14462 — Created June 19, 2025 and submitted

    Information

    Djblets
    release-5.x

    Reviewers

    This change fixes two things with the list edit widget, which is used
    for the diffviewer syntax highlighting file type override configuration.

    1. In the case that the widget is used within a ConfigForms page, the
      30em width for input fields was causing the widget to bust out of the
      60em width of the config forms page. ConfigForms is desperately in
      need of a comprehensive redesign, but for now I've added some style
      overrides to remove the 30em width and instead apply flex-grow: 1.

    2. This change also swaps out the btn class for ink-c-button, giving
      us a better display when running in dark mode. While doing this, I've
      removed role="button" from the element, since that's implicit for
      <button> tags.

    • Viewed the widget in the context of a ConfigForms page and saw that it
      was now fitting nicely into the width of its container, and the "Add
      item" button looked nice in both light and dark modes.
    • Ran js-tests.
    Summary ID
    Fix some display issues with the ListEditWidget.
    This change fixes two things with the list edit widget, which is used for the diffviewer syntax highlighting file type override configuration. 1. In the case that the widget is used within a ConfigForms page, the 30em width for input fields was causing the widget to bust out of the 60em width of the config forms page. ConfigForms is desperately in need of a comprehensive redesign, but for now I've added some style overrides to remove the 30em width and instead apply `flex-grow: 1`. 2. This change also swaps out the `btn` class for `ink-c-button`, giving us a better display when running in dark mode. While doing this, I've removed `role="button"` from the element, since that's implicit for `<button>` tags. Testing Done: - Viewed the widget in the context of a ConfigForms page and saw that it was now fitting nicely into the width of its container, and the "Add item" button looked nice in both light and dark modes. - Ran js-tests.
    74cf91dac2a05d300fb25a486e334ae40ee4dca7
    Description From Last Updated

    Typo in the description: "deseperately"

    chipx86chipx86

    If we're using ink-c-button, we need to update the inner elements to use the right structure for icons and text.

    chipx86chipx86

    Same comment about the structure. Also, the inner element needs to be indented 1.

    chipx86chipx86

    This is missing localization.

    chipx86chipx86
    maubin
    1. Ship It!
    2. 
        
    chipx86
    1. 
        
    2. Show all issues

      Typo in the description: "deseperately"

    3. Show all issues

      If we're using ink-c-button, we need to update the inner elements to use the right structure for icons and text.

    4. Show all issues

      Same comment about the structure.

      Also, the inner element needs to be indented 1.

    5. 
        
    david
    chipx86
    1. 
        
    2. Show all issues

      This is missing localization.

      1. This is just mock data in a unit test.

      2. Ah, right. Nevermind :)

    3. 
        
    david
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-5.x (2d38013)