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

(Multi)Select clickable area #1545

Merged
merged 8 commits into from
Aug 6, 2019

Conversation

swaterkamp
Copy link
Member

Checklist:

When no item is selected the whole width of the Box can now be used to 
open the menu. Once one or more items are selected, the arrow button 
needs to be targeted
@swaterkamp swaterkamp self-assigned this Aug 5, 2019
@swaterkamp swaterkamp marked this pull request as ready for review August 5, 2019 17:07
@swaterkamp swaterkamp requested a review from bjoernricks as a code owner August 5, 2019 17:07
@swaterkamp swaterkamp requested a review from a team August 5, 2019 17:07
@@ -69,7 +69,7 @@ const withLayout = (defaults = {}) => Component => {
basis: PropTypes.string,
flex: PropTypes.oneOf([true, 'column', 'row']),
grow: PropTypes.oneOfType([
PropTypes.oneOf([true]),
PropTypes.oneOf([true, false]),
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this is correct. Allowed are <Layout grow/> <Layout grow={true}/> <Layout grow="1"/> <Layout grow="0"/> <Layout grow={2}/> <Layout grow={0}/> but false shouldn't be used at the moment. I suppose it will work but syntactically a css flex-grow value of false doesn't exist. false is not handled within withLayout besides true which is converted to 1. So either withLayout should be adjusted to convert false into 0 or the expressions like grow={!itemsAreSelected} should be converted to `grow={itemsAreSelected == true ? 1 : 0}

@codecov
Copy link

codecov bot commented Aug 6, 2019

Codecov Report

Merging #1545 into gsa-8.0 will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           gsa-8.0    #1545      +/-   ##
===========================================
+ Coverage    37.52%   37.53%   +<.01%     
===========================================
  Files          965      965              
  Lines        21955    21955              
  Branches      6136     6136              
===========================================
+ Hits          8239     8241       +2     
+ Misses       12406    12405       -1     
+ Partials      1310     1309       -1
Impacted Files Coverage Δ
gsa/src/web/components/form/select.js 90.47% <100%> (-0.15%) ⬇️
gsa/src/web/components/form/multiselect.js 95.94% <100%> (+0.17%) ⬆️
gsa/src/web/pages/results/row.js 7.4% <0%> (+0.51%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 405f154...f64634f. Read the comment docs.

@swaterkamp swaterkamp requested a review from bjoernricks August 6, 2019 10:36
@bjoernricks bjoernricks merged commit f4eb0ca into greenbone:gsa-8.0 Aug 6, 2019
@swaterkamp swaterkamp deleted the SelectClickableArea branch August 6, 2019 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants