Skip to content

Commit

Permalink
Merge pull request #750 from carloslancha/issue-749-improve-creation-…
Browse files Browse the repository at this point in the history
…menu

Improve Creation Menu items logic | Fixes #749
  • Loading branch information
jbalsas authored Mar 16, 2018
2 parents d809d2d + 2c89a92 commit 07f9ad7
Show file tree
Hide file tree
Showing 21 changed files with 2,813 additions and 795 deletions.
16 changes: 10 additions & 6 deletions packages/clay-dataset-display/demos/a11y.html
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,17 @@ <h1 class="page-title">
],
secondaryItems: [
{
href: '#1',
label: 'Add Content 1',
items: [
{
href: '#1',
label: 'Add Content 1',
},
{
href: '#2',
label: 'Add Content 2',
}
],
},
{
href: '#2',
label: 'Add Content 2',
}
],
},
filterItems: [
Expand Down
16 changes: 10 additions & 6 deletions packages/clay-dataset-display/demos/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,17 @@ <h1 class="page-title">
],
secondaryItems: [
{
href: '#1',
label: 'Add Content 1',
items: [
{
href: '#1',
label: 'Add Content 1',
},
{
href: '#2',
label: 'Add Content 2',
}
],
},
{
href: '#2',
label: 'Add Content 2',
}
],
},
filterItems: [
Expand Down
64 changes: 34 additions & 30 deletions packages/clay-dataset-display/src/__tests__/ClayDatasetDisplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,36 +36,40 @@ let creationMenuConfig = {
],
secondaryItems: [
{
href: '#fav1',
label: 'Favorite 1',
},
{
href: '#fav2',
label: 'Favorite 2',
},
{
href: '#fav3',
label: 'Favorite 3',
},
{
href: '#fav4',
label: 'Favorite 4',
},
{
href: '#fav5',
label: 'Favorite 5',
},
{
href: '#fav6',
label: 'Favorite 6',
},
{
href: '#fav7',
label: 'Favorite 7',
},
{
href: '#fav8',
label: 'Favorite 8',
items: [
{
href: '#fav1',
label: 'Favorite 1',
},
{
href: '#fav2',
label: 'Favorite 2',
},
{
href: '#fav3',
label: 'Favorite 3',
},
{
href: '#fav4',
label: 'Favorite 4',
},
{
href: '#fav5',
label: 'Favorite 5',
},
{
href: '#fav6',
label: 'Favorite 6',
},
{
href: '#fav7',
label: 'Favorite 7',
},
{
href: '#fav8',
label: 'Favorite 8',
},
],
},
],
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,6 @@ exports[`ClayDatasetDisplay should render a ClayDatasetDisplay and change view o
<a class=" dropdown-item" href="#2">Add Content 2</a>
</li>
<li aria-hidden="true" class="dropdown-divider" role="presentation"></li>
<li class="dropdown-subheader" role="presentation">Favorites</li>
<li>
<a class=" dropdown-item" href="#fav1">Favorite 1</a>
</li>
Expand Down Expand Up @@ -1408,7 +1407,6 @@ exports[`ClayDatasetDisplay should render a ClayDatasetDisplay and change view o
<a class=" dropdown-item" href="#2">Add Content 2</a>
</li>
<li aria-hidden="true" class="dropdown-divider" role="presentation"></li>
<li class="dropdown-subheader" role="presentation">Favorites</li>
<li>
<a class=" dropdown-item" href="#fav1">Favorite 1</a>
</li>
Expand Down Expand Up @@ -2128,7 +2126,6 @@ exports[`ClayDatasetDisplay should render a ClayDatasetDisplay and change view o
<a class=" dropdown-item" href="#2">Add Content 2</a>
</li>
<li aria-hidden="true" class="dropdown-divider" role="presentation"></li>
<li class="dropdown-subheader" role="presentation">Favorites</li>
<li>
<a class=" dropdown-item" href="#fav1">Favorite 1</a>
</li>
Expand Down Expand Up @@ -2693,7 +2690,6 @@ exports[`ClayDatasetDisplay should render a ClayDatasetDisplay with grouped item
<a class=" dropdown-item" href="#2">Add Content 2</a>
</li>
<li aria-hidden="true" class="dropdown-divider" role="presentation"></li>
<li class="dropdown-subheader" role="presentation">Favorites</li>
<li>
<a class=" dropdown-item" href="#fav1">Favorite 1</a>
</li>
Expand Down Expand Up @@ -3604,7 +3600,6 @@ exports[`ClayDatasetDisplay should render a ClayDatasetDisplay with items and li
<a class=" dropdown-item" href="#2">Add Content 2</a>
</li>
<li aria-hidden="true" class="dropdown-divider" role="presentation"></li>
<li class="dropdown-subheader" role="presentation">Favorites</li>
<li>
<a class=" dropdown-item" href="#fav1">Favorite 1</a>
</li>
Expand Down Expand Up @@ -4632,7 +4627,6 @@ exports[`ClayDatasetDisplay should render a ClayDatasetDisplay with items and li
<a class=" dropdown-item" href="#2">Add Content 2</a>
</li>
<li aria-hidden="true" class="dropdown-divider" role="presentation"></li>
<li class="dropdown-subheader" role="presentation">Favorites</li>
<li>
<a class=" dropdown-item" href="#fav1">Favorite 1</a>
</li>
Expand Down Expand Up @@ -5506,7 +5500,6 @@ exports[`ClayDatasetDisplay should render a ClayDatasetDisplay with items and li
<a class=" dropdown-item" href="#2">Add Content 2</a>
</li>
<li aria-hidden="true" class="dropdown-divider" role="presentation"></li>
<li class="dropdown-subheader" role="presentation">Favorites</li>
<li>
<a class=" dropdown-item" href="#fav1">Favorite 1</a>
</li>
Expand Down Expand Up @@ -5890,7 +5883,6 @@ exports[`ClayDatasetDisplay should render a ClayDatasetDisplay with items and se
<a class=" dropdown-item" href="#2">Add Content 2</a>
</li>
<li aria-hidden="true" class="dropdown-divider" role="presentation"></li>
<li class="dropdown-subheader" role="presentation">Favorites</li>
<li>
<a class=" dropdown-item" href="#fav1">Favorite 1</a>
</li>
Expand Down Expand Up @@ -7260,7 +7252,6 @@ exports[`ClayDatasetDisplay should render a ClayDatasetDisplay with ungrouped it
<a class=" dropdown-item" href="#2">Add Content 2</a>
</li>
<li aria-hidden="true" class="dropdown-divider" role="presentation"></li>
<li class="dropdown-subheader" role="presentation">Favorites</li>
<li>
<a class=" dropdown-item" href="#fav1">Favorite 1</a>
</li>
Expand Down
Loading

0 comments on commit 07f9ad7

Please sign in to comment.