Coder Social home page Coder Social logo

Comments (6)

simonziegler avatar simonziegler commented on June 29, 2024

I agree there is probably a better way, and likewise haven't concluded what it may be.

from material.blazor.

MarkStega avatar MarkStega commented on June 29, 2024

Discuss single text style default versus a default for each use. If we keep single I think there should be only one applied style method.

from material.blazor.

simonziegler avatar simonziegler commented on June 29, 2024

Agree to single text style. It would be stylistic mayhem to make them different, and this cleans things up.

from material.blazor.

MarkStega avatar MarkStega commented on June 29, 2024

I suggest that if there is a single button style then

        public MdcButtonStyle ButtonStyle { get; set; } = MdcButtonStyle.Text;
        public MdcButtonStyle CardActionButtonStyle { get; set; } = MdcButtonStyle.Text;
        public MdcButtonStyle DialogActionButtonStyle { get; set; } = MdcButtonStyle.Text;
        internal MdcButtonStyle AppliedStyle(MdcButtonStyle? style = null) => (style is null) ? ButtonStyle : (MdcButtonStyle)style;
        internal MdcButtonStyle AppliedStyle_CardActionButton(MdcButtonStyle? style = null) => (style is null) ? CardActionButtonStyle : (MdcButtonStyle)style;
        internal MdcButtonStyle AppliedStyle_DialogActionButton(MdcButtonStyle? style = null) => (style is null) ? DialogActionButtonStyle : (MdcButtonStyle)style;

should just be

        public MdcButtonStyle ButtonStyle { get; set; } = MdcButtonStyle.Text;
        internal MdcButtonStyle AppliedStyle(MdcButtonStyle? style = null) => (style is null) ? ButtonStyle : (MdcButtonStyle)style;

from material.blazor.

MarkStega avatar MarkStega commented on June 29, 2024

And I'd suggest the same for the validation methods.

from material.blazor.

simonziegler avatar simonziegler commented on June 29, 2024

I have a case where I would like card buttons to default to something different to other buttons. For my project I want card buttons to be Text while others should be ContainedUnelevated.

from material.blazor.

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.