Skip to content

Commit 2861860

Browse files
committed
Merge branch 'next' of github.com:Semantic-Org/Semantic-UI
2 parents 58bc58e + d168eab commit 2861860

57 files changed

Lines changed: 2746 additions & 3830 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ nbproject
3434
*.sublime-project
3535
*.sublime-workspace
3636
.build*
37+
.idea

RELEASE-NOTES.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,77 @@
11
## RELEASE NOTES
22

3+
### Version 2.3.0 - Feb 19, 2018
4+
5+
**Major Enhancements**
6+
- **Icons** - Font Awesome 5 is now included in Semantic UI **Thanks @hammy2899** [#6085]((https://github.com/Semantic-Org/Semantic-UI/issues/6085)
7+
8+
- **Search** - Category search can now work with local search by adding a `category` property to any result and specifying `type: 'category'`
9+
10+
```javascript
11+
var categoryContent = [
12+
{ category: 'South America', title: 'Brazil' },
13+
{ category: 'South America', title: 'Peru' },
14+
{ category: 'North America', title: 'Canada' },
15+
{ category: 'Asia', title: 'South Korea' },
16+
{ category: 'Asia', title: 'Japan' },
17+
{ category: 'Asia', title: 'China' },
18+
{ category: 'Europe', title: 'Denmark' },
19+
{ category: 'Europe', title: 'England' },
20+
{ category: 'Europe', title: 'France' },
21+
{ category: 'Europe', title: 'Germany' },
22+
{ category: 'Africa', title: 'Ethiopia' },
23+
{ category: 'Africa', title: 'Nigeria' },
24+
{ category: 'Africa', title: 'Zimbabwe' },
25+
];
26+
$('.ui.search')
27+
.search({
28+
type: 'category',
29+
source: categoryContent
30+
})
31+
;
32+
```
33+
34+
- **Popup** - Popup can now position elements correctly even when they have a different offset context than their activating element. Like in [this example](https://jsfiddle.net/g853mc03/).
35+
36+
- **Popup** - Popup will now align the center of the arrow (not the edge of the popup) when it would be reasonable (up to 2x arrow's offset from edge). [See this explanation](http://oi66.tinypic.com/2zr2ckk.jpg)
37+
38+
To preserve functionality `movePopup` default has remained as `true` (moving the popup to the same offset context), however now setting `movePopup: false` should now always position correctly. Be sure to use `movePopup: true` to avoid issues with `ui popup` inside `menu`, `input` or other places where it may inherit rules from its activating element or its context.
39+
40+
- **Transition** - Adds new `glow` transition for highlighting an element on the page, and `zoom` animation for scaling elements without opacity tween.
41+
42+
- **Modal** - Modal has been rewritten to use `flexbox`. No need to call `refresh()` to recalculate vertical centering.
43+
44+
- **Modal** - Modals now have a setting `centered` which can be used to disable vertical centering. This can be useful for modals with content that changes dynamically to prevent content from jumping in position.
45+
46+
**Minor Enhancements**
47+
- **Theming** - Added global variables for reassigning `normal` and `bold` font weights for custom font stacks. **Thanks @jaridmargolin** [#6167]((https://github.com/Semantic-Org/Semantic-UI/issues/6167)
48+
- **Search** - Category results now has `exact` setting matching dropdown for `fullTextSearch` preventing fuzzy search
49+
- **Search** - Category results will now responsively adjust `title` row if titles are long instead of forcing a title width
50+
- **Dimmer** - Dimmers now have centered content with a single wrapping `content` element.
51+
- **Modal** - You can now modify `closable` setting after init **Thanks @mdehoog** [#3396]((https://github.com/Semantic-Org/Semantic-UI/issues/3396)
52+
- **Accordion** - Added `onChanging` callback for accordion that occurs before animation in both directions **Thanks @GammeGames** [#5892](https://github.com/Semantic-Org/Semantic-UI/pull/5892)
53+
54+
**Tiny Enhancements**
55+
- **Popup** - `arrowBackground` now inherits from `background` [#6059]((https://github.com/Semantic-Org/Semantic-UI/issues/6059) **Thanks @devsli**
56+
- **Popup** - Adds new variable `headerFontWeight`
57+
- **Search** - Search now has responsive styles for mobile to prevent results being large than page width.
58+
59+
**Bugs**
60+
- **Modal** - Modal `autofocus` setting now checks to see if currently focused element is in modal, avoiding issues where focus could be set in `onVisible` or `onShow`
61+
- **Menu** - Fixes `big` and `huge` sizes being swapped in menu **Thanks @jeremy091** [#5902]((https://github.com/Semantic-Org/Semantic-UI/issues/5902) [#5899]((https://github.com/Semantic-Org/Semantic-UI/issues/5899)
62+
- **Table** - Fixes tr not having correct border on first row when using multiple `tbody` **Thanks @Mlukman** [#4458]((https://github.com/Semantic-Org/Semantic-UI/issues/4458)
63+
- **Popup** - Popup will now use `content` specified in settings before `title` attribute [#4614]((https://github.com/Semantic-Org/Semantic-UI/issues/4614) **Thanks @aaronbhansen**
64+
- **Form Validation** - Fixes bug where `on: 'change'` would still show validation prompts on `blur` when using `inline: true` [#4423]((https://github.com/Semantic-Org/Semantic-UI/issues/4423) **Thanks @avalanche1**
65+
- **Dimmer** - Fixes issue with `inverted dimmer` with `content` having wrong text color **Thanks @rijk** [#4631]((https://github.com/Semantic-Org/Semantic-UI/issues/4631)
66+
- **Images / Transition** - Fixed issue where `ui images` would show nested images with `transition hidden` as block (Fixes sequential img animation demo in docs)
67+
68+
**Doc Updates**
69+
- **Icons** - Icon documentation now has a search that will copy the relevent icon html to clipboard
70+
- **Icons** - Icon documentation now lists publicly all icon aliases
71+
72+
**Doc Bugs**
73+
- **UI Examples** - Fixe some improper html in UI examples included with repo #6127 **Thanks @perdian**
74+
375
### Version 2.2.14 - Jan 29, 2018
476

577
**Critical Bugs**

dist/semantic.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2374,6 +2374,7 @@ $.fn.accordion = function(parameters) {
23742374
}
23752375
module.debug('Opening accordion content', $activeTitle);
23762376
settings.onOpening.call($activeContent);
2377+
settings.onChanging.call($activeContent);
23772378
if(settings.exclusive) {
23782379
module.closeOthers.call($activeTitle);
23792380
}
@@ -2437,6 +2438,7 @@ $.fn.accordion = function(parameters) {
24372438
if((isActive || isOpening) && !isClosing) {
24382439
module.debug('Closing accordion content', $activeContent);
24392440
settings.onClosing.call($activeContent);
2441+
settings.onChanging.call($activeContent);
24402442
$activeTitle
24412443
.removeClass(className.active)
24422444
;
@@ -2784,6 +2786,7 @@ $.fn.accordion.settings = {
27842786
onOpen : function(){}, // callback after open animation
27852787
onClosing : function(){}, // callback before closing animation
27862788
onClose : function(){}, // callback after closing animation
2789+
onChanging : function(){}, // callback before closing or opening animation
27872790
onChange : function(){}, // callback after closing or opening animation
27882791

27892792
error: {

examples/grid.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,6 @@ <h3>Specifying Device Visibility</h3>
330330
</div>
331331
</div>
332332

333-
</div>
334333
</div>
335334

336335

examples/responsive.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ <h4 class="ui image header">
465465
Lena
466466
<div class="sub header">Human Resources
467467
</div>
468-
</div>
468+
</h4>
469469
</td>
470470
<td>
471471
22
@@ -479,7 +479,7 @@ <h4 class="ui image header">
479479
Matthew
480480
<div class="sub header">Fabric Design
481481
</div>
482-
</div>
482+
</h4>
483483
</td>
484484
<td>
485485
15
@@ -493,7 +493,7 @@ <h4 class="ui image header">
493493
Lindsay
494494
<div class="sub header">Entertainment
495495
</div>
496-
</div>
496+
</h4>
497497
</td>
498498
<td>
499499
12
@@ -507,7 +507,7 @@ <h4 class="ui image header">
507507
Mark
508508
<div class="sub header">Executive
509509
</div>
510-
</div>
510+
</h4>
511511
</td>
512512
<td>
513513
11

examples/sticky.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ <h1 class="ui header">Sticky Example</h1>
123123

124124
<div class="ui borderless main menu">
125125
<div class="ui text container">
126-
<div href="#" class="header item">
126+
<div class="header item">
127127
<img class="logo" src="assets/images/logo.png">
128128
Project Name
129129
</div>

src/definitions/behaviors/form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ $.fn.form = function(parameters) {
358358
module.validate.field( validationRules );
359359
}
360360
}
361-
else if(settings.on == 'blur' || settings.on == 'change') {
361+
else if(settings.on == 'blur') {
362362
if(validationRules) {
363363
module.validate.field( validationRules );
364364
}

src/definitions/collections/table.less

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@
122122
border-top: none;
123123
}
124124

125+
/* Repeated tbody */
126+
.ui.table tbody + tbody tr:first-child td {
127+
border-top: @rowBorder;
128+
}
129+
125130
/* Table Cells */
126131
.ui.table td {
127132
padding: @cellVerticalPadding @cellHorizontalPadding;
@@ -186,7 +191,7 @@
186191
}
187192
.ui.table:not(.unstackable) th:first-child,
188193
.ui.table:not(.unstackable) td:first-child {
189-
font-weight: bold;
194+
font-weight: @responsiveCellHeaderFontWeight;
190195
}
191196

192197
/* Definition Table */
@@ -888,7 +893,7 @@
888893
.ui.sortable.table thead th:after {
889894
display: none;
890895
font-style: normal;
891-
font-weight: normal;
896+
font-weight: @normal;
892897
text-decoration: inherit;
893898
content: '';
894899
height: 1em;

src/definitions/elements/header.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
.ui.header .sub.header {
5050
display: block;
51-
font-weight: normal;
51+
font-weight: @normal;
5252
padding: 0em;
5353
margin: @subHeaderMargin;
5454
font-size: @subHeaderFontSize;

src/definitions/elements/icon.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
src: @fallbackSRC;
2929
src: @src;
3030
font-style: normal;
31-
font-weight: normal;
31+
font-weight: @normal;
3232
font-variant: normal;
3333
text-decoration: inherit;
3434
text-transform: none;
@@ -45,7 +45,7 @@ i.icon {
4545

4646
font-family: 'Icons';
4747
font-style: normal;
48-
font-weight: normal;
48+
font-weight: @normal;
4949
text-decoration: inherit;
5050
text-align: center;
5151

0 commit comments

Comments
 (0)