Skip to content
This repository has been archived by the owner on Jul 4, 2019. It is now read-only.

Dropdown #20

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 6 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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ docker-compose.yml
# configs
/.env
/config.js
/config-window.js
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
source "https://rubygems.org"
Copy link
Contributor

@ciprianlujeru ciprianlujeru Jun 22, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just of curiosity, were these just copied over from the front-end apps or is there a real need for them? (talking about the Gemfile* files)

gem 'scss_lint', '~> 0.48.0'
17 changes: 17 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
GEM
remote: https://rubygems.org/
specs:
rake (11.2.2)
sass (3.4.22)
scss_lint (0.48.0)
rake (>= 0.9, < 12)
sass (~> 3.4.15)

PLATFORMS
ruby

DEPENDENCIES
scss_lint (~> 0.48.0)

BUNDLED WITH
1.15.1
22 changes: 15 additions & 7 deletions src/components/license-dropdown/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
&__license {

&-wrapper {
border: 1px solid oColorsGetPaletteColor("white");
cursor: pointer;

// ignoring the nesting warning as it's not actually a nested class (it's BEM)
Expand Down Expand Up @@ -56,6 +57,12 @@
}
}

&-used {
margin: 5px 20px;
font-size: 18px;
line-height: 26px;
}

&-label {
position: relative;
padding-right: 15px;
Expand All @@ -65,19 +72,16 @@
// ignoring the nesting warning as it's not actually a nested class (it's BEM)
// scss-lint:disable NestingDepth
&::after {
@include oIconsGetIcon('arrow-up-down', oColorsGetPaletteColor('white'), 12);
@include oIconsGetIcon('arrow-down', oColorsGetPaletteColor("claret"), 10);
background-color: oColorsGetPaletteColor("white");
content: "";
position: absolute;
top: 3px;
right: 0;
padding: 8px;
right: -2px;
}

&:hover {
color: oColorsGetPaletteColor("grey-tint2");

&::after {
@include oIconsGetIcon('arrow-up-down', oColorsGetPaletteColor('grey-tint2'), 12);
}
}

}
Expand All @@ -103,6 +107,10 @@
display: block;
}

.kmt-forms__select {
border: 1px solid oColorsGetPaletteColor("white");
}



select,
Expand Down
1 change: 1 addition & 0 deletions src/helpers/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export function getCookieUserDetails() {
// if the data has not been retrieved
if (licenceData === undefined) {
licenceData = {};

if (window.KMT_CONFIG) {
licenceData.items = _sortAndNameLicenses(window.KMT_CONFIG.licenceList || []);
licenceData.username = window.KMT_CONFIG.displayName || "Unknown User";
Expand Down