Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(textfield): text-align inherits from parent #5512

Closed

Conversation

datvm
Copy link
Contributor

@datvm datvm commented Mar 5, 2024

Fix #5509

image

  <div class="container vstack gap-3 text-center border p-3">
    <p>Centered Text</p>

    <md-outlined-text-field value="This text should be at the start"></md-outlined-text-field>
    <md-filled-text-field value="This text should be at the start"></md-filled-text-field>
    <input value="This text should be at the start" />

    <md-outlined-text-field class="text-center" value="This text is manually centered"></md-outlined-text-field>
    <md-filled-text-field class="text-center" value="This text is manually centered"></md-filled-text-field>
    <input class="text-center" value="This text is manually centered" />
  </div>

@asyncLiz
Copy link
Collaborator

Oops, I didn't see this PR when reading your issue. I made #5523 to fix it, so I'll close this PR and track the fix there since its tests are already in progress.

@asyncLiz asyncLiz closed this Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MdTextField inherits text-align from parents
2 participants