question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

<Border-radius> for <md-raised-button> theming

See original GitHub issue

Bug, feature request, or proposal:

Not sure if this is the case for material 1, but I’m trying to have different rounding for the md-raised-buttons for various themes. The rounding takes place inline on the component. I cannot see a way how to do this other then create a new component based on<md-button> or add a rule which overrides the [md-button] selector. Neither of these solutions looks to be a good one.

What is the expected behavior?

It would be nice to move this out to the theming.

What is the current behavior?

The rounding is in the component’s css, so not really possible to globaly override the border-radius for every button without changing the specificity of selector (.name-of-theme [md-raised-button] {})

What are the steps to reproduce?

Providing a Plunker (or similar) is the best way to get the team to see your issue.

What is the use-case or motivation for changing an existing behavior?

Easier theming for rounding

Which versions of Angular, Material, OS, browsers are affected?

angular 2.0.0, material@2.0.0-alpha.9-3

Is there anything else we should know?

I’m very newbie with angular 2 and material design 😄

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
emilio-martinezcommented, Oct 13, 2016

Quick thought in regards to the specificity: using button[md-raised-button], a[md-raised-button] as selectors should suffice.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 5, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

<Border-radius> for <md-raised-button> theming #1484 - GitHub
Is there anything else we should know? I'm very newbie with angular 2 and material design :D. The text was updated successfully, but...
Read more >
Create a rounded button / button with border-radius in Flutter
Using the Container() widget, you can set a border or rounded corner of any widget. If you want to set any type of...
Read more >
md-button - CSS - AngularJS Material
<md-button>. Below is a snapshot of the AngularJS Material button component demos with the default themes and standard options: buttonsdemo ...
Read more >
border-radius - CSS: Cascading Style Sheets - MDN Web Docs
The border-radius CSS property rounds the corners of an element's outer border edge. You can set a single radius to make circular corners, ......
Read more >
angular/material2 - Gitter
... .md-button-focus-overlay,.md-button-focus[md-raised-button] ... @import '~@angular/material/core/theming/all-theme'; // Include non-theme styles for ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found