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

docs(Toolbar): Prototype for custom toolbar #1541

Merged
merged 40 commits into from
Jul 9, 2019

Conversation

miroslavstastny
Copy link
Member

Adds a prototype for custom-styled toolbar

@codecov
Copy link

codecov bot commented Jun 25, 2019

Codecov Report

Merging #1541 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1541   +/-   ##
=======================================
  Coverage   71.53%   71.53%           
=======================================
  Files         847      847           
  Lines        6931     6931           
  Branches     1997     1997           
=======================================
  Hits         4958     4958           
  Misses       1967     1967           
  Partials        6        6

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 8c7b68c...fa35081. Read the comment docs.

docs/src/index.ejs Outdated Show resolved Hide resolved
variables: {
primary: true,
},
},
Copy link
Contributor

Choose a reason for hiding this comment

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

The exampe does not show a spin button, but we will need to figure out how that is going to be transformed into a menu item for the overflow. Should we generate two menu items for it? Should we introduce something similar to the chrome zoom menu - which is a group of menu items aligned horizontaly?

image

CHANGELOG.md Outdated Show resolved Hide resolved

ctItemActiveBackground: siteVars.colorScheme.brand.backgroundHover1,
ctItemActiveBackgroundOverlay:
'linear-gradient(90deg,rgba(60,62,93,.6),rgba(60,62,93,0) 33%),linear-gradient(135deg,rgba(60,62,93,.6) 33%,rgba(60,62,93,0) 70%),linear-gradient(180deg,rgba(60,62,93,.6) 70%,rgba(60,62,93,0) 94%),linear-gradient(225deg,rgba(60,62,93,.6) 33%,rgba(60,62,93,0) 73%),linear-gradient(270deg,rgba(60,62,93,.6),rgba(60,62,93,0) 33%),linear-gradient(0deg,rgba(98,100,167,.75) 6%,rgba(98,100,167,0) 70%)',
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's check before merge whether these colors exists in the color palette.

Copy link
Member Author

Choose a reason for hiding this comment

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

Our plan is not to match redlines (for now), comment added.

...(v.isCtItemPrimary && { background: v.ctItemPrimaryBackground }),
...(v.isCtItemIndicator && { padding: v.ctItemIndicatorPadding }),

...(p.isFromKeyboard && {
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's check with design whether these focusing styles are correct. And at least add comment that those should be changed if they should appear as in the other components.

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

This rather shows how to change styles for focus than matches redlines.

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree, just if we can use the general getBorderFocusStyles styles, we would be able to remove some styles... Let's not address this now until we are sure what is the expected state here...

}),

...(v.isCtItemIconNoFill && {
'& .ui-icon__filled': {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use here getIconFilledOrOutlineStyles.ts? Or at least can we use [& .${teamsIconClassNames.filled}] and [& .${teamsIconClassNames.outline}] as selectors?

Copy link
Member Author

Choose a reason for hiding this comment

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

Unfortunately there is currently no way how to access it from the outside of the library.
This is a bummer we should think about.

Copy link
Contributor

@mnajdova mnajdova left a comment

Choose a reason for hiding this comment

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

Let's review comments before merging..

@miroslavstastny miroslavstastny merged commit d253398 into master Jul 9, 2019
@delete-merged-branch delete-merged-branch bot deleted the proto/custom-toolbar branch July 9, 2019 16:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants