Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Visual="Material" making the iOS Button Text to Upper Case #5516

Closed
rkshnair opened this issue Mar 12, 2019 · 7 comments
Closed

Visual="Material" making the iOS Button Text to Upper Case #5516

rkshnair opened this issue Mar 12, 2019 · 7 comments

Comments

@rkshnair
Copy link

rkshnair commented Mar 12, 2019

Description

<Button Text="Material Button" Visual="Material"/>

is changing the iOS button text also to upper. Is there any property present to make the button text smaller / configurable?

Steps to Reproduce

create button with material option
<Button Text="Material Button" Visual="Material"/>

Expected Behavior

Is should display the same text i have given "Material Button"

Actual Behavior

It is displaying ""MATERIAL BUTTON"

Basic Information

  • Version with issue: 3.6.x
@paymicro
Copy link
Contributor

This behavior is according to the spec material design.

By default Material uses capitalized button text labels

But most likely a setting will be added to disable uppercaseTitle

@rkshnair
Copy link
Author

rkshnair commented Mar 12, 2019

@paymicro I agree!!!! But if we can expose a property for this feature. It will be an add on advantage. Since control with All CAP doesn't look that great in iOS. :)

@maexsp
Copy link
Contributor

maexsp commented May 28, 2019

A setting to diable UPPERCASE would be helpfull! For Android it works also if setting the Android styles.xml to false but in iOS, UWP, WPF it has no effect. Please improve this.

@GalaxiaGuy
Copy link
Contributor

This should probably be part of #5005.

@Shashidhar014
Copy link

I used CustomRenderer to to resolve this issue, you can inherit MaterialButtonRenderer and set Control.UppercaseTitle = false

@samhouts samhouts added inactive Issue is older than 6 months and needs to be retested help wanted We welcome community contributions to any issue, but these might be a good place to start! up-for-grabs We welcome community contributions to any issue, but these might be a good place to start! labels Dec 4, 2019
@samhouts samhouts added proposal-open and removed help wanted We welcome community contributions to any issue, but these might be a good place to start! up-for-grabs We welcome community contributions to any issue, but these might be a good place to start! labels Feb 7, 2020
@davidortinau
Copy link
Contributor

This issue doesn't apply only to the Material Design renderers for Visual. Basic Android Material will do this also.

How about we default to Material but allow the developer to express specific expectations in a style?

I don't think this should be the material attached properties alone.

Looking at UWP It appears you would use a text converter to drive this behavior. In web/css you use text-transform. I think the latter covers all the bases. The former alone would require implicitly overriding what the renderer default was, in this case all uppercase.

<Button Text="Button" TextTransform="Lowercase"/>

Other values:

  • none (default)
  • capitalize - first of each word is uppercase
  • uppercase (material defaul)
  • lowercase

@PureWeen @samhouts

@samhouts samhouts removed the inactive Issue is older than 6 months and needs to be retested label Apr 30, 2020
@jfversluis
Copy link
Member

Thanks for this suggestion! As Xamarin.Forms is now in maintenance mode, this will not happen anymore for Xamarin.Forms. We're only adding bugfixes and stability fixes.

If this is still important to you, make sure to check the .NET MAUI repo and see if it's already on the roadmap. If not, feel free to open a discussion to discuss a change first or open an issue with a detailed feature request. Thanks!

@jfversluis jfversluis closed this as not planned Won't fix, can't repro, duplicate, stale Aug 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants