Coder Social home page Coder Social logo

Unify look of form fields about base HOT 4 CLOSED

getbase avatar getbase commented on May 28, 2024
Unify look of form fields

from base.

Comments (4)

matthewhartman avatar matthewhartman commented on May 28, 2024

Hey Andreas,

Yeah, I did that purposely. The intention was to leave the ugly select box the way it was so it was consistent across all browsers (including the dreadful ie8).

To make the select consistent like the rest of the form elements, use custom select.

Eg:

<span class="select">
    <select>
        <option>option</option>
    </select>
</span>

I think moving forward though, it would be a wise move to style the select to look more 'up to date' and consistent with the other form elements.

Please leave this with me as I create the updates for Base 2.6.8.

Cheers,

Matt

from base.

alinnert avatar alinnert commented on May 28, 2024

Hey Matt,

I've tested it on the demo site via developer tools. That's a quite simple workaround.
But why does the <select> have width: 120%;? That way the dropdown really is a lot wider than the actual custom select.

And I see styling the form fields in assets.less/sass wouldn't be too hard I guess. But I'll wait for the 2.6.8 update first.

So, thanks for your reply.
Andreas

from base.

matthewhartman avatar matthewhartman commented on May 28, 2024

Hey Andreas,

Mainly due to the reason that I wanted all select elements to look consistent on all browsers.

The <span class="select"></span> is a wrapper that styles the select shell. The inner <select> has all styling removed.

In IE8, the arrow dropdown icon still shows, so I've added the width of 120% to hide the arrow (as <span class="select"> has an overflow: hidden;)

Hope this makes sense.

Cheers,

Matthew

from base.

matthewhartman avatar matthewhartman commented on May 28, 2024

Hi Andreas,

Base 2.6.8 has been released with the latest fixes.

Cheers,

Matthew

from base.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.