ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

Button border colors hard coded transparent

Open joeljameswatson opened this issue 10 years ago • 9 comments

In Ionic 1.2.0 the button border styles appear to be hardcoded to transparent through a mixin. This seems to make creating custom styles more difficult and less maintainable. I suggest this could be set as a variable.

Please see this commit:

https://github.com/driftyco/ionic/commit/21e54be

joeljameswatson avatar Feb 23 '16 20:02 joeljameswatson

+1 I just updated ionic to 1.2.1 and all the borders disappeared.

Is this a feature or a bug?

ghost avatar Mar 09 '16 07:03 ghost

@asanin-2sol Would you mind making a codepen or giving us a code example so that we can repro this issue? Thanks!

jgw96 avatar Mar 11 '16 22:03 jgw96

@jgw96 My main problem is with button bars, having no borders makes the following example look like a single button with three labels rather than three buttons in a bar.

<div class="button-bar">
  <a class="button">First</a>
  <a class="button">Second</a>
  <a class="button">Third</a>
</div>

Also, the way this looks does not correspond to the way button bars look in the documentation, where the borders are not transparent.

Hope this helps.

ghost avatar Mar 15 '16 01:03 ghost

Hi @gness and @joeljameswatson,

I have updated the sass. Please take a look and let me know if any changes are required and if this works for you. In the mean time I am going to close this issue. Thanks for contributing and letting us know.

Thanks, Dan

danbucholtz avatar May 09 '16 20:05 danbucholtz

Hi @danbucholtz,

i have left a comment on your commit. Currently there is no chance to set a user defined value to the introduced scss variables $button-default-border and $button-default-active-border.

andischerer avatar May 13 '16 09:05 andischerer

Hi @andischerer,

Can you do a PR with the changes you'd like to see. I'll happily work with you to get it merged quickly. Please let me know.

Thanks! Dan

danbucholtz avatar May 14 '16 02:05 danbucholtz

@danbucholtz here you are

andischerer avatar May 14 '16 20:05 andischerer

Nice! I'll test and merge. In the off chance I forget, just bug me about it again. Thanks for doing this!

Thanks, Dan

danbucholtz avatar May 15 '16 00:05 danbucholtz

@danbucholtz This issue seems to be resolved but $button-default-border and $button-default-active-border is still hard-coded

UnVoiding avatar Jul 07 '16 14:07 UnVoiding