Browse Source

Adds selectable cell

pull/3130/merge
Jack 9 years ago
parent
commit
44c078e5ad
2 changed files with 22 additions and 3 deletions
  1. 1
      RELEASE-NOTES.md
  2. 24
      src/definitions/collections/table.less

1
RELEASE-NOTES.md

@ -6,6 +6,7 @@
- **Form** - Adds `equal width form` and `equal width fields` for simpler grouped fields
- **Modal** - `onHide` callback can now cancel event by returning false #3168 **Thanks @mdehoog**
- **Dropdown** - Added `onLabelRemove` callback that allows value removal to be cancelled by callback **Thanks @goloveychuk**
- **Table** - Added `selectable` on table cell, allowing for full table-cell links
**Bugs**
- **Divider/Step/Modal/AD** - Fixes 1px jump at `@mobileBreakpoint` caused by incorrect edge conditions in media query #3180 **THanks @mdehoog**

24
src/definitions/collections/table.less

@ -481,46 +481,64 @@
/*--------------
Hoverable
Selectable
---------------*/
.ui.selectable.table tbody tr:hover {
.ui.selectable.table tbody tr:hover,
.ui.table tbody tr td.selectable:hover {
background: @selectableBackground !important;
color: @selectableTextColor !important;
}
.ui.selectable.inverted.table tbody tr:hover {
.ui.selectable.inverted.table tbody tr:hover,
.ui.inverted.table tbody tr td.selectable:hover {
background: @selectableInvertedBackground !important;
color: @selectableInvertedTextColor !important;
}
/* Selectable Cell Link */
.ui.table tbody tr td.selectable {
padding: 0em;
}
.ui.table tbody tr td.selectable > a:not(.ui) {
display: block;
color: inherit;
padding: @cellVerticalPadding @cellHorizontalPadding;
}
/* Other States */
.ui.selectable.table tr.error:hover,
.ui.table tr td.selectable.error:hover,
.ui.selectable.table tr:hover td.error {
background: @errorBackgroundHover !important;
color: @errorColorHover !important;
}
.ui.selectable.table tr.warning:hover,
.ui.table tr td.selectable.warning:hover,
.ui.selectable.table tr:hover td.warning {
background: @warningBackgroundHover !important;
color: @warningColorHover !important;
}
.ui.selectable.table tr.active:hover,
.ui.table tr td.selectable.active:hover,
.ui.selectable.table tr:hover td.active {
background: @activeBackgroundColor !important;
color: @activeColor !important;
}
.ui.selectable.table tr.positive:hover,
.ui.table tr td.selectable.positive:hover,
.ui.selectable.table tr:hover td.positive {
background: @positiveBackgroundHover !important;
color: @positiveColorHover !important;
}
.ui.selectable.table tr.negative:hover,
.ui.table tr td.selectable.negative:hover,
.ui.selectable.table tr:hover td.negative {
background: @negativeBackgroundHover !important;
color: @negativeColorHover !important;
}
/*-------------------
Attached
--------------------*/

Loading…
Cancel
Save