Comments (6)
I agree there is probably a better way, and likewise haven't concluded what it may be.
from material.blazor.
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.
Agree to single text style. It would be stylistic mayhem to make them different, and this cleans things up.
from material.blazor.
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.
And I'd suggest the same for the validation methods.
from material.blazor.
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)
- MBAutoCompleteTextField does not escape regex HOT 2
- https://material-blazor.com failing to load - giving "An unhandled error has occurred. Reload X" HOT 2
- Theme switcher on demo website seems to throw Exception HOT 1
- What is the purpose of content remove, content include in csproj? HOT 2
- Use Material.Blazor and MaterialBlazor.MD3 simultaneously in a project HOT 2
- Remove obsolete MBLinearProgressType.ReversedDeterminate
- Text Field Badge overflow
- Installation instructions unclear when starting from blazor template project HOT 1
- Implement MBDateTimeField
- MBButton ignoring IconFoundry? HOT 2
- Numeric double field bug
- MBToast needs to wrap lengthy text
- Repair static assets creation HOT 1
- MBToast improperly wraps text
- Potentially rationalize badge implementation
- Blade demo enhancement
- Fix github actions shield in readme.md
- MB breaks with dotnet7 HOT 6
- Add Material Design 3 preview to the M.B solution
- MBSelect throws javascript TypeError HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from material.blazor.