-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Button Re-write #1333
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
Button Re-write #1333
Changes from all commits
891a7d9
6a6446b
07f52c1
f8c5aea
544f9ff
3c52f19
b1c0f22
43ec02b
51d1d33
0aa2e1f
9562d7a
808bb7f
a813056
330dc7e
157ba04
8c0b1ac
dfaba1d
af57abd
aa4bbb3
e59c360
d93e475
31dcc86
2a0b8eb
69bdbfc
b238f36
c31c9f1
9ab23dc
c5ada6d
98a2cc7
7c7acda
836feb5
b97ff0e
5dd9120
e183631
7628f28
cecd4e2
328308a
758ff6c
21fbfa3
7382fd3
3ac52a8
ab96209
0fec7d4
ef9ed64
913edd3
a0b707b
e383e5e
c33af61
bbabe61
51c996f
e60bc37
d443a88
122c578
8645e04
3d65007
259f8aa
737e99a
33f1959
66833ea
1f7333b
cbd6e03
80cb6e7
7ac96c8
4fde24d
2f4bf6a
2fc590f
c70e383
987a83f
35697d4
3e1478a
5969ce6
2d04b3e
8e28a60
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,37 +11,57 @@ | |
<link rel="stylesheet" href="../demos.css"> | ||
<script> | ||
$(function() { | ||
$( "button:first" ).button({ | ||
icons: { | ||
primary: "ui-icon-locked" | ||
}, | ||
text: false | ||
$( ".widget button, .widget a" ).first().button({ | ||
icon: "ui-icon-gear", | ||
showLabel: false | ||
}).next().button({ | ||
icons: { | ||
primary: "ui-icon-locked" | ||
} | ||
icon: "ui-icon-triangle-1-w" | ||
}).next().button({ | ||
icons: { | ||
primary: "ui-icon-gear", | ||
secondary: "ui-icon-triangle-1-s" | ||
} | ||
icon: "ui-icon-triangle-1-e", | ||
iconPosition: "end" | ||
}).next().button({ | ||
icons: { | ||
primary: "ui-icon-gear", | ||
secondary: "ui-icon-triangle-1-s" | ||
}, | ||
text: false | ||
icon: "ui-icon-triangle-1-s", | ||
iconPosition: "bottom" | ||
}).next().button({ | ||
icon: "ui-icon-triangle-1-n", | ||
iconPosition: "top" | ||
}); | ||
}); | ||
</script> | ||
</head> | ||
<body> | ||
<div class="widget"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why did you move the demo markup below the description? If there's no reason, let's move it back up. Generally the demo description should be below the markup. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not just generally, the specific formatting should be exactly the same because of the post-processing for jqueryui.com. |
||
<h1>Widget</h1> | ||
<a href="#">Button with icon only</a> | ||
<button>Button with icon on the left</button> | ||
<button>Button with icon on the right</button> | ||
<button>Button with icon on the bottom</button> | ||
<button>Button with icon on the top</button> | ||
</div> | ||
<div class="css"> | ||
<h1>CSS</h1> | ||
<button class="ui-button ui-widget ui-corner-all ui-button-icon-only" title="Button with icon only"> | ||
<span class="ui-icon ui-icon-gear"></span> | ||
Button with icon only | ||
</button> | ||
<button class="ui-button ui-widget ui-corner-all ui-icon-beginning"> | ||
<span class="ui-icon ui-icon-triangle-1-w"></span> | ||
Button with icon on the left | ||
</button> | ||
<button class="ui-button ui-widget ui-corner-all ui-icon-end"> | ||
<span class="ui-icon ui-icon-triangle-1-e"></span> | ||
Button with icon on the right | ||
</button> | ||
<button class="ui-button ui-widget ui-corner-all ui-icon-bottom"> | ||
<span class="ui-icon ui-icon-triangle-1-s"></span> | ||
Button with icon on bottom | ||
</button> | ||
<button class="ui-button ui-widget ui-corner-all ui-icon-top"> | ||
<span class="ui-icon ui-icon-triangle-1-n"></span> | ||
Button with icon on top | ||
</button> | ||
|
||
<button>Button with icon only</button> | ||
<button>Button with icon on the left</button> | ||
<button>Button with two icons</button> | ||
<button>Button with two icons and no text</button> | ||
|
||
</div> | ||
<div class="demo-description"> | ||
<p>Some buttons with various combinations of text and icons.</p> | ||
</div> | ||
|
This file was deleted.
This file was deleted.
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.
Extend this to mention the difference between "Widget buttons" and "CSS buttons".