No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Hide the priority_high in QInput on error

    Help
    3
    13
    809
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      turigeza last edited by turigeza

      How would I go about hiding the exclamation mark ?
      [v1-beta]
      alt text

      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by

        Try this css:

        .q-field--error .q-icon {
          visibility: hidden;
        }
        

        Scott

        1 Reply Last reply Reply Quote 1
        • rstoenescu
          rstoenescu Admin last edited by

          Added “no-error-icon” Boolean prop. Will be available in beta.15

          1 Reply Last reply Reply Quote 2
          • T
            turigeza last edited by

            @rstoenescu Thank you !

            1 Reply Last reply Reply Quote 0
            • T
              turigeza last edited by

              @s-molinari Thank you but that would hide all icons. So it will only work if you have no other icons used.

              1 Reply Last reply Reply Quote 0
              • s.molinari
                s.molinari last edited by s.molinari

                @turigeza - does it? Add text to the field too.

                https://codepen.io/smolinari/pen/YMPjvx

                @rstoenescu - maybe just add a warning-icon prop and let the devland dev decide if they want an icon for the warning at all and which icon? If nothing is defined in the prop, then nothing is shown?

                Scott

                1 Reply Last reply Reply Quote 1
                • T
                  turigeza last edited by turigeza

                  @s-molinari
                  Thank you! It seems there is a difference in behaviour if you set the error yourself instead of the validation rules.
                  https://codepen.io/turigeza/pen/eoNMKw

                  I am talking nonsense sorry … There is no difference in behaviour. All icons will be hidden on error
                  https://codepen.io/turigeza/pen/QPbryP

                  @rstoenescu I like s-molinari suggestion if you are making the effort to change it and it’s not much more work. Mind for me these icons are not important … I will be hiding them most of the time.

                  1 Reply Last reply Reply Quote 0
                  • s.molinari
                    s.molinari last edited by

                    Yeah. Nevermind. Don’t know what I was thinking.

                    Scott

                    1 Reply Last reply Reply Quote 0
                    • rstoenescu
                      rstoenescu Admin last edited by

                      We want to follow Material Guidelines as strictly as possible, and I see the error icon there by default. So a no-error-icon makes a bit more sense…

                      T 1 Reply Last reply Reply Quote 0
                      • T
                        turigeza @rstoenescu last edited by

                        @rstoenescu I am fine with that. Also an option to add a class to it so I can target it with css and hide it. I leave it with you. Thank you for implementing it.

                        1 Reply Last reply Reply Quote 0
                        • s.molinari
                          s.molinari last edited by s.molinari

                          The Material spec says this:

                          1. Icons
                            Icons can be used to message alerts as well. Pair them with error messages to provide redundant alerts, which are useful when you need to design for colorblind users.

                          Nothing specific about which icon.

                          In the end, it doesn’t really matter to me. I’m just thinking, where a framework doesn’t need to be opinionated, it shouldn’t be. 😄 In fact, the icon used in the spec is different than the one used in Quasar.

                          07dda986-f590-4fee-8ce1-78a029c39664-image.png

                          Just sayin! 😊 😁

                          Scott

                          1 Reply Last reply Reply Quote 0
                          • rstoenescu
                            rstoenescu Admin last edited by

                            They keep changing Material Design specs weekly. Updated icon in beta.15 (released).
                            But like you read: “Icons […] are useful when you need to design for colorblind users” --> since Quasar is a framework, it must adhere to best practices 😉

                            1 Reply Last reply Reply Quote 1
                            • s.molinari
                              s.molinari last edited by s.molinari

                              Absolutely.

                              I also just remembered, the devland dev can define a different icon too. So, nevermind. 😄

                              https://codepen.io/smolinari/pen/WWQybN

                              Scott

                              1 Reply Last reply Reply Quote 1
                              • First post
                                Last post