Zum Hauptinhalt gehen

Customize back arrow on panel in Web

Kommentare

2 Kommentare

  • Kylie Day

    +1 to this idea.

    I've tested a workaround in CSS that seems to work OK at the moment. It might assist until more customisation options are available through the web designer.

    If you have a startup workflow with the inject CSS element, the below code will add text next to the arrow and increase the size of the arrow.

    /*Add text to the back arrow.*/

    button.MuiButtonBase-root.MuiIconButton-root.MuiIconButton-sizeSmall.arrow-back-button.gxw-ltr-18r52qk::after {
       content: "Back to previous panel";
       font-size: large;
       font-style: italic;
       position: relative;
       padding: 5px;
    }

    /* Change back arrow size */
    svg.MuiSvgIcon-root.MuiSvgIcon-fontSizeInherit.gxw-ltr-1qk6fot {
           font-size: large;
    }

    But it would be great if additional UI customisation options were available through the web designer.

    0
  • Jeff DeWitt

    Thanks so much for this code, it worked great!  I was wondering if it was possible to inject CSS to do this but wasn't sure how to add that.  Here is what it looks like now in my application:

     

    I tweaked the CSS a little bit to change the font size and color, here is what I ended up using:

    /*Add text to the back arrow.*/

    button.MuiButtonBase-root.MuiIconButton-root.MuiIconButton-sizeSmall.arrow-back-button.gxw-ltr-10ya35p::after {
      content: "Back to properties list";
      font-size: medium;
      font-style: normal;
      color: #555555;
      position: relative;
      padding: 5px;
    }

    /* Change back arrow size */
    svg.MuiSvgIcon-root.MuiSvgIcon-fontSizeInherit.gxw-ltr-1qk6fot {
          font-size: large;
    }

    Thanks again for this, this will work very well in my application, really appreciate your help!

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.