Git Product home page Git Product logo

Comments (7)

Sharlaan avatar Sharlaan commented on August 16, 2024 1

Ok just made a release which should be available in next 30mins.

If you specify BOTH floatingLabel and hintText, then the floatingLabel will remain fixed no matter what.

from material-ui-superselectfield.

Sharlaan avatar Sharlaan commented on August 16, 2024 1

Indeed i found out Travis failed to build ...

so the v1.9.4 has the updated src, but the old built lib .... sigh

from material-ui-superselectfield.

Sharlaan avatar Sharlaan commented on August 16, 2024 1

ok, try v1.9.5

from material-ui-superselectfield.

Sharlaan avatar Sharlaan commented on August 16, 2024

Hello,

Thanks for your interest in my component.

I'm slightly confused in what you want exactly :

  • floatingLabelFixed just prevents the label shrinking animation depending if value is null or not. It has nothing to do with label styling.
  • you wrote being concerned with styling, look being different from official M-UI v0.x version

Can you be more explicit please ?

PS: there is a floatingLabelStyle prop in readme

from material-ui-superselectfield.

m-o-leary avatar m-o-leary commented on August 16, 2024

Hi,

Thanks for responding.

So with current select field I have the prop floatingLabelFixed={true} which, as you know, keeps the floating label positioned above the input regardless of whether or not value is null.

With this prop set I then have hint text in the component which is how all my selects and text fields are setup.

I just want to replicate this with your component.
In the example picture, the top one is a normal select, bottom is your component:
image

So is it possible to have "Work Item Tool" always positioning like the following?
image

On the styling; I have to manually add a margin of 20px to the top of the element to have a similar height to normal M-UI v0.x select - the M-UI v0.x select has same height regardless of floating label present or not. I am assuming when I have a fixed floating label it will all look OK though.

from material-ui-superselectfield.

m-o-leary avatar m-o-leary commented on August 16, 2024

Hi,

Appreciate the fast turnaround.

Stupid question - how do I get this latest change? When I npm i material-ui-superselectfield I get the latest released version [email protected] but when I use it as follows:

      import SuperSelectField from 'material-ui-superselectfield';
      ...
      renderSelect = list => {
        return _.map(list, (tool,i) => {
          return <div key={i} value={tool[globals._FIELD]}>{tool['human']}</div>
        })
      }
      ...
        <SuperSelectField
            name='tool'
            floatingLabel='Work Item Tool(s)'
            hintText='Select a tool'
            value={tool}
            onChange={handleChange}
            style={{width: 256, marginTop: 20}}
          >
          {
              :: this.renderSelect(newDataSource)
          }
          </SuperSelectField>

resulting in the following:

image

so I'm not seeing the change that you implemented I think...
sorry!

from material-ui-superselectfield.

m-o-leary avatar m-o-leary commented on August 16, 2024

Thanks!

from material-ui-superselectfield.

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.