What's New
최신 릴리스에서 새롭게 추가된 기능들을 소개하는 페이지예요. 버전별로 새로운 컴포넌트와 개선, 그리고 깨지는 변경(Breaking changes) 사항을 정리해 드릴게요.
출처: 문서
본문
각 버전에서 무엇이 새로워졌는지 살펴볼게요.
- New in 2.9
- New in 2.8
- New in 2.7
- New in 2.6
- New in 2.5
- New in 2.4
- New in 2.3
One big step ahead
Fomantic 2.9에는 다시 한 번 200개가 넘는 새로운 기능, 개선 사항, 버그 수정이 포함돼 있어요. 지난 4년 동안 이전 Fomantic UI 버전에서 아직 수정되지 않았던 소수의 SUI 2.5.0 수정 사항도 함께 포함됐어요.
New UI Component
Flyout
Flyout은 Modal과 Sidebar가 결합되어 탄생한 컴포넌트예요.
$.flyout({
autoShow: true,
title: 'Flyout Notice',
class: 'wide',
closeIcon: true,
content: 'Fomantic-UI 2.9.0 was released today!',
actions: [{
text: 'Awesome, thanks!',
class: 'green',
icon: 'save'
}]
});
New features
General
New variable@supportIE controls whether IE/old Edge specific CSS Code should be compiled
Only woff/woff2 font files are supported, eot/svg/ttf have been removed
All onShow and onHide callbacks now have cancel support. Returning false from such callbacks will prevent the related module to be shown/hidden
Emoji, Flag and Icon are now build out of LESS-maps which can then be easily overridden or reduced to only the ones needed in your own theme
A11y as well as jQuery short notation$. support for dynamically created modal, toast and the new flyout
Focus trap in modals and flyouts
Dependency to jquery serialize-object in Api was removed. It's now built-in and enhanced.
Added input support for color,week,month,file (see below) and url inputs
All elements can now have their individual color variants
Accordion now has an inverted, basic styled and tree variant and icon can be displayed to the right
Button Groups now supports wrapping and can be spaced
Calendar now supports disabledHours
Table now supports inverted colors
Toast now allows clickable items as content without closing the toast
- 새 변수
@supportIE는 IE/구형 Edge 전용 CSS 코드를 컴파일할지 여부를 제어해요. - 이제 woff/woff2 폰트 파일만 지원하며,
eot/svg/ttf는 제거됐어요. - 모든
onShow와onHide콜백은 이제 취소를 지원해요. 이런 콜백에서false를 반환하면 해당 모듈이 표시/숨김되지 않도록 막을 수 있어요. - Emoji, Flag, Icon은 이제 LESS-map으로 빌드되어, 자신의 테마에서 쉽게 재정의하거나 필요한 것만 남기도록 줄일 수 있어요.
- 동적으로 생성되는 modal, toast, 새로운 flyout에 대한 A11y 및 jQuery 단축 표기
$.지원이 추가됐어요. - 모달과 플라이아웃에 포커스 트랩(Focus trap)이 도입됐어요.
- Api에서 jquery serialize-object 의존성이 제거됐어요. 이제 내장되어 개선됐어요.
color,week,month,file(아래 참조),url입력 지원이 추가됐어요.- 모든 요소가 이제 각자의 개별 색상 변형을 가질 수 있어요.
- Accordion에 이제 inverted, basic 스타일, tree 변형이 추가됐고, 아이콘을 오른쪽에 표시할 수 있어요.
- Button Groups가 이제 줄바꿈(wrapping)을 지원하고 간격을 둘 수 있어요.
- Calendar가 이제
disabledHours를 지원해요. - Table이 이제 inverted 색상을 지원해요.
- Toast가 토스트를 닫지 않고 클릭 가능한 항목을 콘텐츠로 허용해요.
Bundled Lato Font
기본 테마의 Lato 폰트가 이제 번들로 제공되며, 키릴 문자와 그리스 문자를 지원하도록 2.0으로 업그레이드됐어요. 기본적으로 googleFonts를 통한 로딩은 비활성화되어 있어요.
File Inputs
파일 입력(File input)이 이제 지원돼요.
Choose wisely
SVG Flags
Flag는 이제 Emoji와 동일한 SVG 아이콘을 사용해요. 덕분에 크기를 조절할 수 있게 됐고, 누락된 국가 코드와 기타 글로벌 식별자도 많이 추가됐어요.
Calendar Token Format
Calendar는 이제 문자열 포맷터로 토큰을 지원해요.
$('.ui.calendar')
.calendar({
formatter: {
date: 'DD.MM.YYYY'
}
})
;
Icon Update
아이콘을 FontAwesome 5.15.4로 업데이트했어요.
Scrolling and Stuck Table
Table이 이제 스크롤되는 tbody와 고정(stuck) 열을 지원해요.
...
Accordion CSS Only
Accordion은 이제 details/summary 태그를 사용해 Javascript 없이도 사용할 수 있어요.
How many people are working on Fomantic-UI
Breaking changes
- Build — npm에서 설치할 때 더 이상 빌드 스크립트가 자동으로 시작되지 않아요. 그래야 yarn 같은 다른 패키지 매니저도 동작할 수 있어요.
- API —
rawResponse의 새 기본값은true예요. - Button —
@tertiaryLinePadding변수가@tertiaryVerticalPadding과@tertiaryHorizontalPadding으로 분리됐어요. - Calendar —
ampm설정이 제거됐어요. 대신 새 token string 포맷터를 사용하세요. - Checkbox — 레거시 v1
box스타일링(v2의label대신)이 제거됐어요. - Dropdown —
showOnFocus의 새 기본값은false,fullTextSearch의 새 기본값은'exact',forceSelection의 새 기본값은false예요.@upwardMenuBorderRadius가@upwardSelectionMenuBorderRadius로 이름이 바뀌었어요. - Emoji and Flag — 드롭다운 안에서의 사용에 맞도록 기본 줄 높이가 약간 줄었어요. 이모지/플래그가 너무 작게 보인다면 크기 클래스를 추가하세요.
- Form —
errorFocus의 새 기본값은true예요. "length" 규칙이 제거되었으니minlength를 사용하세요. - Icon —
chart line이chartline으로,line graph가linegraph로 이름이 바뀌었어요. - Label —
left icon과right icon은 정확히 그 클래스 순서로 선언해야 해요. - Sidebar —
onShow와onVisible콜백이 다른 모든 모듈과 같은 로직으로 맞춰지도록 서로 바뀌었어요. - Shape —
beforeChange가onBeforeChange로 이름이 바뀌었어요. - Slider —
is touch동작이 제거됐어요. - Tab — 탭 메뉴와 관련 세그먼트는 두 개 이상의 attached 세그먼트를 허용하기 위해 전용 부모 노드 안에 있어야 해요.
- Table — 표시된 셀에도 색을 칠해야 한다면
colored클래스를 추가하고red colored right orange marked같은 고정 클래스 순서를 따라야 해요.
Bugfixes
80개가 넘는 버그가 수정됐는데, 그중 언급할 만한 것들은 다음과 같아요.
- Step이 font face에서 이중 세미콜론을 가져 webpack 5를 깨뜨리던 문제
- Dropdown addition이 일부 경우에 인코딩되어 모바일에서 망가지던 문제
- node 15+ / npm 7, yarn, pnpm 설치 시 깨지던 문제
- Firefox 폰트 간격 경고와 Firefox 103+에서 Accordion이 깨지던 문제
- 사이드바의 ScrollLock이 동작하지 않던 문제
- 모달 안 입력 필드에서 Escape 키를 누르면 모달 자체가 닫히던 문제
Toasty Emotion
Fomantic 2.8은 지금까지 최고의 업데이트 중 일부를 가져왔어요. 컴포넌트의 변형 기능 커스터마이징, 더 많은 토스트 변경, 이모지(EMOTES), 그리고 물론 아주 많은 중요한 그리고 꼭 필요한 버그 수정이 포함되어 있어요. 이건 깨지는 변경(breaking changes) 업데이트이므로, 깨지는 변경 목록은 다음과 같아요.
-
API —
beforeSend함수의 컨텍스트가 이제stateContext의 내용 대신 초기화된 요소로 설정돼요 (문서에서 이미 정확했던 부분). -
Calendar — 새 콜백
onBeforeChange가 이전에onChange가 하던 일(날짜를 바꾸기 전에 호출되어 변경을 거부할 기회를 주는 것)을 해요.onChange는 이제 날짜가 변경된 후 호출돼요. 월을 파싱할 때 이제 처음 세 글자뿐 아니라 전체 월 이름에 매핑돼요. -
Dropdown — select 태그의 "required" 속성이 자동으로 제거돼요. 검색 항목이 드롭다운 목록에서 발견되지 않고 추가가 허용되지 않으면
searchterm이 blur 시 제거돼요. 여러 항목이 선택될 때set.value()가 내부적으로 잘못된 추가 매개변수를 제공했는데, 이로 인해 자신의onChange콜백에서 제대로 가져오지 못할 수 있었어요. -
Emoji — 기존 theme.config의 elements 블록에
@emoji: 'default';를 추가해야 해요. -
Slider — 범위 슬라이더가 서로 교차하지 않도록 잘못 계산된 값을 피하기 위해 새 옵션
preventCrossover가 기본값true로 설정됐어요. -
Toast — 새 기본값이 적용됐어요 (
progressbar가 감소하고, title이ui header를 사용하며 글꼴이 약간 더 크고, 그림자, 흰 배경, 중앙 정렬 아이콘). -
Other — 동적 LESS 컴파일을 통해 생성되는 CSS 파일 크기가 크게 줄어들 수 있어요. 새
variation.variables파일로 LESS에서 요소의 어떤 변형을 만들지 제어할 수 있어요. 일부를false로 설정하면 돼요(자신의 site.variables에서 설정하며, variation.variables 파일을 건드릴 필요는 없어요). 기본적으로 모든 것이 활성화되어 있고 모든 컴포넌트가 기존의 어떤 크기로든 렌더링돼요.
Sneak peek at some new features
Toast
2.8에서 toast 컴포넌트에 많은 새로운 변형과 기능을 추가했어요. 놀라운 새 변경 중 몇 가지만 소개할게요.
Image Support
Pause timer on hover
Action Buttons
Create from DOM elements
A Toast created from a DOM element
Information states
- 이미지 지원
- 마우스 오버 시 타이머 일시 정지
- 액션 버튼
- DOM 요소로부터 생성
- 정보 상태
EMOJIS
2.8은 모든 Unicode 12.1 Emoji 문자를 지원하는 새로운 emoji 요소를 도입했어요.
Dynamic LESS Compilation
2.8에서 커스텀 테마를 빌드하기 위한 새로운 기능, 동적 LESS 컴파일(Dynamic LESS Compilation)을 도입했어요. 이 기능을 사용하면 컴포넌트의 특정 변형을 비활성화해서 필요한 기능만 포함한 CSS 파일을 생성할 수 있어요. 덕분에 커스텀 배포 파일이 훨씬 작아져 웹사이트 속도가 빨라져요.
Icon Update
다시 한 번 아이콘을 FontAwesome 5.11.2로 업데이트했어요.
Merry Christmas 🎅
Fomantic 2.7은 크리스마스에 맞춰 정말 많은 새로운 기능과 수정 사항을 가져왔어요!
Announcement
2019년이 다가오고 많은 논의 끝에 (핵심 기여자들이) 핵심 초점을 FUI v3.0으로 옮기기로 합의했어요. 이는 2.x 작업을 하지 않겠다는 뜻이 아니라, v3.0에 더 많은 작업이 투입되면서 릴리스가 다소 느려질 수 있다는 뜻이에요. FUI와 v3.0의 미래에 대해 더 자세히 읽을 수 있어요.
Notes:
- 이 릴리스에서 우리는
prompt-sui의존성을 제거했어요. 이것은event-stream의 하위 의존성을 제거해서, 라이브러리가 (이제 폐기된) 악성 코드를 내려받지 않도록 보장해요. 최근 event-stream 보안 문제에 대해 더 알고 싶다면 이 이슈를 읽어 보세요. - 이 릴리스에서는 많은
!important사용을 제거하는 데 큰 초점을 맞췄는데, 그게 많은 문제를 일으키고 있었어요. 핵심 기여자들의 큰 도움으로 사용량의 약 85%를 제거했고, 많은 색상 코드 베이스의 복잡성을 줄여 변경하기 쉬워지고 일반 코드 베이스의 크기와 중복 코드를 줄일 수 있었어요.
New features
Slider
2.7에서 range 컴포넌트의 이름을 slider로 바꾸고, 가지고 놀 수 있는 많은 새 기능도 추가했어요.
Loader
2.7에서 몇 가지 새로운 로더 스타일을 추가해서 지루한 스피너에 얽매이지 않게 됐어요.
Colors
2.7에서 색상에 미쳐서 프레임워크 전반에 걸쳐 색상을 더 일관되게 만들고 자신만의 색상을 정의할 수 있도록 코드 베이스의 많은 부분을 변경했어요 🎉.
Modal
2.7에서 모달의 위치를 지정할 수 있게 됐어요. 기본값은 중앙 정렬(middle aligned)이에요.
$('.ui.top.aligned.modal').modal('show') ;
$('.ui.bottom.aligned.modal') .modal('show') ;
$('.ui.overlay.fullscreen.modal') .modal('show') ;
Top Aligned
Close
Bottom Aligned
Close
Overlay Full Screen
Even if there is not much content here...
...the overlay fullscreen modal will occupy the entire screen
Close
Dropdown
2.7에서 dropdown 모듈은 더 많은 내용을 한눈에 표시하는 새 변형을 갖게 됐어요. 드롭다운에 옵션이 아주 많을 때 유용할 수 있어요.
State
Alabama
Alaska
Arizona
Arkansas
California
Colorado
Connecticut
Delaware
District Of Columbia
Florida
Georgia
Hawaii
Idaho
Illinois
Indiana
Iowa
Kansas
Kentucky
Louisiana
Maine
Maryland
Massachusetts
Michigan
Minnesota
Mississippi
Missouri
Montana
Nebraska
Nevada
New Hampshire
New Jersey
New Mexico
New York
North Carolina
North Dakota
Ohio
Oklahoma
Oregon
Pennsylvania
Rhode Island
South Carolina
South Dakota
Tennessee
Texas
Utah
Vermont
Virginia
Washington
West Virginia
Wisconsin
Wyoming
Show me
css
Angular
CSS
Graphic Design
Ember
HTML
Information Architecture
Javascript
Mechanical Engineering
Meteor
NodeJS
Plumbing
Python
Rails
React
Kitchen Repair
Ruby
UI Design
User Experience
classes currently available.
Progress
2.7에서 progress는 이제 여러 개의 막대를 가질 수 있어요.
여기서 멈추지 않고 다른 컴포넌트에도 멋진 새 기능을 많이 추가하고 많은 버그를 해결했어요. 전체 변경 목록은 여기에서 찾을 수 있어요.
Toasty loaders
Fomantic 2.6은 콘텐츠 로딩 처리를 위한 새 컴포넌트 ui placeholder와 콘텐츠를 위한 공간을 예약하는 데 쓰는 새 세그먼트 타입 ui placeholder segment를 가져왔어요.
또한 이 릴리스에는 몇 가지 중요한 컴포넌트 업데이트가 포함되어 있어요.
- Modals가 하이브리드 flex 지원을 사용하도록 재설계되어, 더 복잡한 사용 사례(또는 구형 브라우저)에서는 JS 포지셔닝으로 대체돼요.
- Dropdowns에 이제 사용자가 드롭다운을 빈 상태로 재설정할 수 있는 clearable 설정이 포함됐어요.
새 Toast 컴포넌트도 도입하고 있어요.
이전 SUI 버전에서 업그레이드한다면, 코드에 placeholder 또는 toast 컴포넌트를 포함하도록 theme.config에 @placeholder와 @toast를 추가해야 해요.
New UI Component
Placeholders
Placeholders can be used to reduce the jarringness, and perceived load time when loading new content
Simulate Loading
Add
Delete
Lindsay
Joined in 2013
Primary Contact
Add
Delete
Placeholder는 새 콘텐츠를 로딩할 때의 딱딱함과 체감 로딩 시간을 줄이는 데 사용할 수 있어요.
fomantic/Fomantic-UI-Docs
Updated 22 mins ago
Placeholder Segment
Placeholder segment는 디자인에서 콘텐츠가 나타날 자리를 미리 예약할 수 있게 해줘요. 페이지에 콘텐츠가 없어도 의도된 기능을 사용자에게 알려주고 싶을 때 유용해요.
No users have been added yet
Add User
Or
Find Country
Add New Country
Create
New Features
Clearable Dropdowns
이제 드롭다운은 clearable: true로 지정해서 콘텐츠를 지울 수 있음을 나타낼 수 있어요.
South Korea
Afghanistan
Aland Islands
Albania
Algeria
American Samoa
Andorra
Angola
Anguilla
Antigua
Argentina
Armenia
Aruba
Australia
Austria
Azerbaijan
Bahamas
Bahrain
Bangladesh
Barbados
Belarus
Belgium
Belize
Benin
Bermuda
Bhutan
Bolivia
Bosnia
Botswana
Bouvet Island
Brazil
British Virgin Islands
Brunei
Bulgaria
Burkina Faso
Burma
Burundi
Caicos Islands
Cambodia
Cameroon
Canada
Cape Verde
Cayman Islands
Central African Republic
Chad
Chile
China
Christmas Island
Cocos Islands
Colombia
Comoros
Congo Brazzaville
Congo
Cook Islands
Costa Rica
Cote Divoire
Croatia
Cuba
Cyprus
Czech Republic
Denmark
Djibouti
Dominica
Dominican Republic
Ecuador
Egypt
El Salvador
England
Equatorial Guinea
Eritrea
Estonia
Ethiopia
European Union
Falkland Islands
Faroe Islands
Fiji
Finland
France
French Guiana
French Polynesia
French Territories
Gabon
Gambia
Georgia
Germany
Ghana
Gibraltar
Greece
Greenland
Grenada
Guadeloupe
Guam
Guatemala
Guinea-Bissau
Guinea
Guyana
Haiti
Heard Island
Honduras
Hong Kong
Hungary
Iceland
India
Indian Ocean Territory
Indonesia
Iran
Iraq
Ireland
Israel
Italy
Jamaica
Japan
Jordan
Kazakhstan
Kenya
Kiribati
Kuwait
Kyrgyzstan
Laos
Latvia
Lebanon
Lesotho
Liberia
Libya
Liechtenstein
Lithuania
Luxembourg
Macau
Macedonia
Madagascar
Malawi
Malaysia
Maldives
Mali
Malta
Marshall Islands
Martinique
Mauritania
Mauritius
Mayotte
Mexico
Micronesia
Moldova
Monaco
Mongolia
Montenegro
Montserrat
Morocco
Mozambique
Namibia
Nauru
Nepal
Netherlands Antilles
Netherlands
New Caledonia
New Guinea
New Zealand
Nicaragua
Niger
Nigeria
Niue
Norfolk Island
North Korea
Northern Mariana Islands
Norway
Oman
Pakistan
Palau
Palestine
Panama
Paraguay
Peru
Philippines
Pitcairn Islands
Poland
Portugal
Puerto Rico
Qatar
Reunion
Romania
Russia
Rwanda
Saint Helena
Saint Kitts and Nevis
Saint Lucia
Saint Pierre
Saint Vincent
Samoa
San Marino
Sandwich Islands
Sao Tome
Saudi Arabia
Senegal
Serbia
Serbia
Seychelles
Sierra Leone
Singapore
Slovakia
Slovenia
Solomon Islands
Somalia
South Africa
South Korea
Spain
Sri Lanka
Sudan
Suriname
Svalbard
Swaziland
Sweden
Switzerland
Syria
Taiwan
Tajikistan
Tanzania
Thailand
Timorleste
Togo
Tokelau
Tonga
Trinidad
Tunisia
Turkey
Turkmenistan
Tuvalu
Uganda
Ukraine
United Arab Emirates
United States
Uruguay
Us Minor Islands
Us Virgin Islands
Uzbekistan
Vanuatu
Vatican City
Venezuela
Vietnam
Wallis and Futuna
Western Sahara
Yemen
Zambia
Zimbabwe
Show me
css
Angular
CSS
Graphic Design
Ember
HTML
Information Architecture
Javascript
Mechanical Engineering
Meteor
NodeJS
Plumbing
Python
Rails
React
Kitchen Repair
Ruby
UI Design
User Experience
classes currently available.
Improved Flexbox Modals
flex-box는 2.3.0에서 도입됐지만 일부 고급 사용 사례를 막는 제약이 있었어요. 예를 들어 flexbox 모달은 detachable: false를 사용하고 dimmer flex 컨테이너 안에 직접 있지 않은 모달을 지원하지 않았어요. 또한 일부 flex 브라우저(IE11)는 flex 컨테이너 안의 절대 배치 요소를 지원하지 않아, 그런 경우 여러 개의 겹치는 모달을 사용할 수 없었어요.
The beginning of something new
Fomantic-UI는 성숙해지기 시작했고 우리는 더 크고 더 나은 업데이트를 밀어내기 시작하고 있어요. 새로운 Calendar와 Range slider 모듈을 좋아해 주시길 바라요!
New Components
Calendar
Range Slider
FontAwesome 5.3.1
아이콘을 최신 FontAwesome 릴리스로 업데이트했어요.
Colored Loaders
More Inverted Components
2.5에서 inverted 컴포넌트 지원을 크게 늘리기 위해 큰 노력을 기울였어요.
Comments
Comments
Matt
Today at 5:42PM
How artistic!
Reply
Elliot Fu
Yesterday at 12:30AM
Reply
Jenny Hess
Just now
Elliot you are always so right :)
Reply
Joe Henderson
5 days ago
Dude, this is awesome. Thanks so much
Reply
Feed
Just now
Elliot Fu
posted on his page
Hey there !
Elliot Fu
added you as a friend
1 Hour Ago
Helen Troy added 2 new illustrations
4 days ago
1 Like
Step
Shipping
Choose your shipping options
Billing
Enter billing information
Confirm Order
Verify order details
Cards
Matt Giampietro
Friends
Matthew is an interior designer living in New York.
Joined in 2013
75 Friends
Molly
Coworker
Molly is a personal assistant living in Paris.
Joined in 2011
35 Friends
Elyse
Coworker
Elyse is a copywriter working in New York.
Joined in 2014
151 Friends
Horizontal Cards
Matt Giampietro
Friends
Matthew is an interior designer living in New York.
Molly
Coworker
Molly is a personal assistant living in Paris.
A new life
활발한 개발이 느려지면서 커뮤니티가 Semantic의 새로운 삶을 시작하기 위해 일어섰어요. Fomantic-UI에 오신 것을 환영합니다. 릴리스 노트는 여기에서 읽을 수 있어요.
New Features
Inverted & basic Primary and Secondary buttons
이제 primary와 secondary basic 및 inverted 버튼을 사용할 수 있어요.
Primary Basic
Secondary Basic
Primary Inverted
Secondary Inverted
Primary Inverted
Secondary Inverted
Tertiary buttons
새 tertiary 버튼은 덜 중요한 버튼을 위한 거예요.
Primary
Secondary
Red
Orange
Yellow
Olive
Green
Teal
Blue
Violet
Purple
Pink
Brown
Grey
Black
Primary & Secondary colors
Headers, Icons, Cards가 이제 모두 primary와 secondary 색상을 가져요.
Primary Header
Secondary Header
Inverted dropdown variation
Dropdown은 이제 inverted 될 수 있어요. inverted 세그먼트 안에서 아주 멋져 보여요.
Select choice
Choice 1
Choice 2
Choice 3
Choice 4
Choice 5
Choice 6
Choice 7
Choice 8
Choice 9
Dropdown Search dividers/headers
검색 가능한 드롭다운 메뉴는 관련 콘텐츠를 구분하기 위해 dividers 및/또는 headers를 포함할 수 있어요. hideDividers를 사용하면 항목을 필터링할 때 이 요소들을 어떻게 처리할지 제어할 수 있어요.
$('.dropdown')
.dropdown({
hideDividers: option
})
;
false
Filter Posts
Filter by tag
Important
Announcement
Discussion
Filter by date
This Week
This Month
This Year
true
Filter Posts
Filter by tag
Important
Announcement
Discussion
Filter by date
This Week
This Month
This Year
'empty'
Filter Posts
Filter by tag
Important
Announcement
Discussion
Filter by date
This Week
This Month
This Year
Clearable selection Dropdown
단일 선택 드롭다운에 clearable 클래스를 추가하면 이전에 선택한 값을 지울 수 있게 돼요.
Select Language
Arabic
Chinese
Danish
Dutch
English
French
German
Greek
Hungarian
Italian
Japanese
Korean
Lithuanian
Persian
Polish
Portuguese
Russian
Spanish
Swedish
Turkish
Vietnamese
A New Approach
오랜 기간의 패치 이후, Semantic UI 2.3은 프로젝트의 중대한 기능 변경으로의 복귀를 의미해요. 다가오는 Semantic 릴리스에서는 더 자주, 하지만 더 작은 변경 세트로 릴리스해서 사용자가 전역 변경에 업그레이드하고 적응하기 쉽게 만들 거예요.
New Features
Font Awesome 5.0 & Better Icon Searching
2.3에서 아이콘은 929개의 아이콘을 포함한 Font Awesome 5.0.6의 전체 포트를 포함해요.
Smile
Smile Outline
Hand Rock
Hand Paper
Hand Scissors
Flexbox Modals and Dimmers
Semantic UI 2.3은 세로 중앙 정렬을 위해 비-JS flexbox 포지셔닝을 포함하도록 modal을 재작성했어요. 콘텐츠 높이가 변경되어 다시 중앙 정렬하려고 $('.ui.modal').modal('refresh')를 호출할 필요가 없어졌어요.
Top Aligned Modal
Cancel
Submit
Open Top Aligned Modal
$('.ui.special.modal')
.modal({
centered: false
})
.modal('attach events', '.modal.example .button')
;
New Transitions
Transition에 이제 zoom과 glow가 포함돼요. glow는 페이지에서 요소를 강조하는 데 유용해요.
$('.autumn.leaf')
.transition('zoom')
;
$('.autumn.leaf')
.transition('glow')
;
Global Font Weight Variables
Theming은 이제 두 개의 전역 변수 @bold와 @normal을 사용해서 더 복잡한 폰트 스택에서 글꼴 두께를 더 쉽게 수정할 수 있게 해줘요.
/* Use some custom font weights */
@bold: 600;
@normal: 400;
Local Category Search
이제 API 콜백을 추가하지 않고도 source 옵션으로 카테고리 검색을 사용할 수 있어요.
var categoryContent = [
{ category: 'South America', title: 'Brazil' },
{ category: 'South America', title: 'Peru' },
{ category: 'North America', title: 'Canada' },
{ category: 'Asia', title: 'South Korea' },
{ category: 'Asia', title: 'Japan' },
{ category: 'Asia', title: 'China' },
{ category: 'Europe', title: 'Denmark' },
{ category: 'Europe', title: 'England' },
{ category: 'Europe', title: 'France' },
{ category: 'Europe', title: 'Germany' },
{ category: 'Africa', title: 'Ethiopia' },
{ category: 'Africa', title: 'Nigeria' },
{ category: 'Africa', title: 'Zimbabwe' },
];
$('.local-category.example .ui.search')
.search({
type: 'category',
source: categoryContent,
searchFields: [
'title',
'category'
]
})
;
Arrow Alignment on Small Popups
Semantic popup은 이제 팝업을 화살표에 수평 정렬하는 것이 가장자리 맞추기보다 더 합리적인 때를 감지해요.
To use this feature be sure to specify movePopup: false in your settings
$('.centering.example .avatar.image').popup();
이 기능을 사용하려면 설정에서 movePopup: false를 지정해야 해요.
Popups Support Multiple Coordinate Systems
Popup은 이제 두 개의 서로 다른 좌표계를 가진 요소를 올바르게 배치할 수 있어요. 이는 보통 부모 요소가 transform이나 position 같은 CSS 속성을 가질 때 발생해요.
Button
Button
/* Activating element is inside #one with different positioning context */
#one {
display: block;
position: relative;
padding: 50px 100px;
background-color: #F0F0F0;
}
/* Popup is inside two with position relative (creating another positioning context) */
#two {
display: block;
background-color: #E2EAE4;
position: relative;
top: 10px;
padding: 50px 8px;
}
$('.complex-popup.example .ui.button')
.popup({
movePopup: false,
popup: $('.complex-popup.example .popup')
})
;
- 활성화하는 요소는 다른 위치 지정 컨텍스트를 가진
#one안에 있음 - 팝업은
position: relative인#two안에 있음 (또 다른 위치 지정 컨텍스트 생성)
New Matching Options
추가로, search에는 이제 dropdown에서 사용할 수 있는 옵션과 유사한 세 단계의 일치 결과가 포함돼요. 퍼지 결과는 이제 새 기본값 fullTextSearch: 'exact'에 의해 꺼져 있어요.
Query matches the start of field exactly
Query matches any part of field New
Query "fuzzy" matches field
$('.ui.search')
.search({
fullTextSearch: 'exact' // only matches exact matches (no fuzzy matching)
})
;
- 쿼리가 필드의 시작 부분과 정확히 일치
- 쿼리가 필드의 어느 부분과도 일치 (New)
- 쿼리가 "fuzzy"로 필드와 일치
더 알아보기 (Learn more)
버전별 변경 사항을 통해 최신 기능과 깨지는 변경을 파악했어요. 새로 나온 컴포넌트를 실제로 써 보려면 Modules 문서에서 각 컴포넌트의 사용법을 살펴보세요.