Skip to content
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

Add styling for FacetTabs and configuration option for FacetResults #79

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions frontend/configuration.properties.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,12 @@
// The label for the export button
exportButtonLabel: 'Export',
},

// These properties configure the default properties for FacetResults component in the UI.
FacetResults: {
hideFacet: [ // The facet field names that should be hidden from the FacetResults
],
},

// These properties configure the default values for properties of any Searcher components,
// which are used by their child components to perform the searches of the index.
Expand Down
43 changes: 43 additions & 0 deletions frontend/src/style/bootstrap/attivio-facet-tabs.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
.facet-tab-container{
width: 100%;
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
align-content: center;
align-items: center;
border-radius: 5px;
}

.facet-tab {
order: 0;
flex: 1 1 auto;
align-self: auto;
margin-top: 0.6em;
margin-bottom: 0.6em;
margin-left: 0.7em;
margin-right: 0.7em;
padding-top: 0.5em;
padding-bottom: 0.5em;
padding-left: 0.5em;
padding-right: 0.5em;
min-height: auto;
display: flex;
align-items: center;
border-radius: 5px;
background-color: white;
transition: all .2s ease-in-out;
cursor: pointer;
}

.facet-tab-text {
width: 100%;
text-align: center;
color: #363f45;
font-weight: bold;
}

.facet-tab:hover {
background-color: #f9f9f9;
transform: scale(1.01);
}
1 change: 1 addition & 0 deletions frontend/src/style/bootstrap/bootstrap.less
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,4 @@
@import "attivio-templates.less";
@import (inline) "../../../node_modules/react-dates/lib/css/_datepicker.css";
@import "attivio-date-picker.less";
@import "attivio-facet-tabs.less";