-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
34 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!DOCTYPE html> | ||
<html ng-app="ionic"> | ||
<head> | ||
<script src="../../dist/js/ionic.bundle.js"></script> | ||
<meta charset="utf-8"> | ||
<title>Buttons</title> | ||
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> | ||
<link href="../../dist/css/ionic.css" rel="stylesheet"> | ||
<style> | ||
body { | ||
position: absolute;; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
|
||
<header class="bar bar-header bar-dark"> | ||
<h1 class="title">Buttons: borderless</h1> | ||
</header> | ||
|
||
<div class="content has-header"> | ||
|
||
<button class="button button-primary">Hello</button> | ||
<button class="button button-assertive">Hello</button> | ||
<button class="button button-stable">Hello</button> | ||
<button class="button button-calm">Hello</button> | ||
</div> | ||
|
||
</body> | ||
</html> |
21e54be
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could someone please explain the reasons behind the modification in the @mixin button-style? The mixin is accepting @border-color and @active-border-color variables but they are ignored inside the mixin by using hardcoded transparent color instead. This setup makes creating bordered buttons a real struggle. You would basically have to redefine the styles to all the button variations (default, hover and active) if the default button is designed to have a border. If the new v2 default look of the buttons should be without the borders, wouldn't it be a more flexible solution if the Ionic variables such as $button-light-border and $button-light-active-border (and other moods) would be set to transparent and in the mixin they'd be used as before: border-color: $border-color;? This way if a design requires it, one could redefine those variables in their custom css. If not, the default transparent value defined in ionic variables would be used.
21e54be
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea I could do something like that. Watch for the next relesae
21e54be
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The docs are still showing buttons with borders, yet this commit that removes the borders is part of the stable 1.2.1 version. Do you need to update your docs, or have I missed something here. Thanks.
21e54be
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexkb +1
21e54be
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When is the next release, the buttons now are almost invisible, same with button bar.
21e54be
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've logged this as an issue here
#5576