Skip to content

Conversation

@bitpshr
Copy link
Member

@bitpshr bitpshr commented Jul 11, 2017

Type: feature

The following has been addressed in the PR:

  • There is a related issue
  • All code matches the style guide
  • Unit or Functional tests are included in the PR

Description:

This PR adds an initial theme for the Dialog component.

screen shot 2017-07-11 at 4 14 45 pm

@bitpshr bitpshr requested review from smhigley and tomdye July 11, 2017 20:20
@codecov
Copy link

codecov bot commented Jul 11, 2017

Codecov Report

Merging #247 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #247      +/-   ##
==========================================
+ Coverage   98.89%   98.89%   +<.01%     
==========================================
  Files          24       24              
  Lines        1448     1449       +1     
  Branches      423      423              
==========================================
+ Hits         1432     1433       +1     
  Partials       16       16
Impacted Files Coverage Δ
src/dialog/Dialog.ts 96.87% <100%> (+0.1%) ⬆️

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 d778455...4b88f7f. Read the comment docs.

Copy link
Contributor

@smhigley smhigley left a comment

Choose a reason for hiding this comment

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

Looks good, I just commented on small stuff. Feel free to address or ignore and merge :)

@import './variables.css';

.main,
.main * {
Copy link
Contributor

Choose a reason for hiding this comment

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

Might as well put this under .root for consistency, I think

}

.close:after {
content: '✕';
Copy link
Contributor

Choose a reason for hiding this comment

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

Same with SlidePane, should probably use an icon at some point

--grid-size: 8px;
--header-font-size: 20px;
--header-line-height: 1.2;
--underlay-bg: rgba(0, 0, 0, 0.59);
Copy link
Contributor

Choose a reason for hiding this comment

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

0.6, maybe? :)
Could also use color(var(--dojo-black) alpha(60%)) for this and --drop-shadow

@tomdye
Copy link
Member

tomdye commented Jul 12, 2017

Same comment as other theme prs re. not using dojo-color vars directly

@bitpshr
Copy link
Member Author

bitpshr commented Jul 12, 2017

@tomdye: I'm not using any dojo-* colors directly in the dialog theme CSS.

@tomdye
Copy link
Member

tomdye commented Jul 12, 2017

@bitpshr https://github.com/dojo/widgets/pull/247/files#diff-c4cf4cf350681f33fabe02c0da0f7cc4R11

@bitpshr
Copy link
Member Author

bitpshr commented Jul 12, 2017

@tomdye @smhigley I addressed all feedback; any additional feedback on this before we land it?

Copy link
Contributor

@smhigley smhigley left a comment

Choose a reason for hiding this comment

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

Only comment is maybe the close button should have theme-y focus styles added. Otherwise I think it's fine to merge 👍

title,
v('div', { id: this._titleId }, [ title ]),
closeable ? v('button', {
classes: this.classes(css.close),
Copy link
Member

Choose a reason for hiding this comment

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

this likely needs a closeFixed class too.

Copy link
Member Author

Choose a reason for hiding this comment

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

What styling would need to be in a fixed class? With no theme (base or otherwise) the close button is still visible in the titlebar and clickable, it just has no styling.

@bitpshr bitpshr merged commit 3c85aa4 into dojo:master Jul 26, 2017
@dylans dylans added this to the 2017.07 milestone Aug 9, 2017
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.

4 participants