Skip to content

feat: added vars to control padding on host and margin on icon#1290

Merged
castastrophe merged 3 commits intoUS267056-pfe-clipboardfrom
US267056-pfe-clipboard--margin-padding-vars
Jan 22, 2021
Merged

feat: added vars to control padding on host and margin on icon#1290
castastrophe merged 3 commits intoUS267056-pfe-clipboardfrom
US267056-pfe-clipboard--margin-padding-vars

Conversation

@heyMP
Copy link
Copy Markdown
Contributor

@heyMP heyMP commented Jan 22, 2021

@heyMP heyMP requested a review from castastrophe January 22, 2021 17:26
@github-actions github-actions Bot added the styles An issue or PR pertaining only to CSS/Sass label Jan 22, 2021
@castastrophe castastrophe added needs changelog Be sure to update the Changelog before merging. needs docs updates and removed needs changelog Be sure to update the Changelog before merging. needs docs updates labels Jan 22, 2021
Copy link
Copy Markdown
Contributor

@castastrophe castastrophe left a comment

Choose a reason for hiding this comment

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

This looks great!

@castastrophe castastrophe merged commit e1c122b into US267056-pfe-clipboard Jan 22, 2021
@castastrophe castastrophe deleted the US267056-pfe-clipboard--margin-padding-vars branch January 22, 2021 21:44
castastrophe added a commit that referenced this pull request Jan 25, 2021
* feat: added pfe-clipboard element, adding slots and some styling

* add an extend for host selector

* add a11y attributes to treat pfe-clipboard as button

* initial copy to clipboard function

* added new Clipboard API with fallbacks

* added demos

* added icon-hidden boolean

* add height auto to better account for other icons

* added title to demo

* adding pfe-toast as default notification option.

* added template override to pfe-toast.

* removed dynamic imports for now. Added template fallbacks for notifications

* added notification text to slot schema

* added demos

* removed dynamic imports for now. Added template fallbacks for notifications

* chore: added todo

* added demo for custom icon, fixed icon variables

* taking a stab at adding background vars

* make default text into the default slot

* added keyboard event listeners

* move button to internal container

* converted copyURLToClipboard to promise based

* update docs

* fixing svg widths in safari

* added position fixed for toast

* ie11 hacks to behave like a button.

* added lighter weight font

* added space to button input for a11y

* chore: remove log

* added a copied text slot and new state

* fixed the hover and focused states to have outline instead of background

* changed padding to 6 x 16px to match styleguide

* adding aria alert based on https://www.w3.org/TR/wai-aria-practices-1.1/examples/alert/alert.html

* corrected ie11 issues with styling slots

* updated demo to not emphasis notifications

* feat: remove notifications 🔪

* chore: comments and removing toast in scss

* initial tests

* check for slot content

* added check for hidden-icon

* bump version

* combined h2 styles in demo

https://github.com/patternfly/patternfly-elements/pull/1235/files/c0753744d52158f78279774374d579b2e8bb4497#r548153171

* Added pfe-icon for the custom icon examples.

https://github.com/patternfly/patternfly-elements/pull/1235/files/c0753744d52158f78279774374d579b2e8bb4497#r548154117

* add custom storybook defaults

https://github.com/patternfly/patternfly-elements/pull/1235/files/c0753744d52158f78279774374d579b2e8bb4497#r548155043

* always use the config default content.

* Updating version

https://github.com/patternfly/patternfly-elements/pull/1235/files/c0753744d52158f78279774374d579b2e8bb4497#r548156029

* added pfelement and pfe-sass correct version

https://github.com/patternfly/patternfly-elements/pull/1235/files/c0753744d52158f78279774374d579b2e8bb4497#r548155984

* removed pfe-clipboard__container from shadowRoot

https://github.com/patternfly/patternfly-elements/pull/1235/files/c0753744d52158f78279774374d579b2e8bb4497#r548157632

* remove unused css. Fixed :host selector for hover,focus

* remove reference to old named slot

* Added README! 📙

* reformatted slots docs

* updated readme

* Revert "updated readme"

This reverts commit 0f9aa82.

* add dynamic rendering for icon-hidden attribute

* reverting pfe-card erronious changes

* reverting pfe-card erronious changes

* make title for icon hidden attribute more expressive

* removed unused element references

* removed unused element references

* adding tab index and role button to all of the demos to encourage progressive enhancement

* change property to no-icon from icon-hidden. Also added a _rendered state to the base class.

* adding transposing slots

* updated transpose slots to be more declarative

* moving to test fixtures

* added css variable for success color

* test for slots

* trying getelementstyle test

* added temp fix for get computed style test

* added copied event test

* added transpose test

* added check for aria roles

* Bring in storybook patch from master

* Update storybook utilities to support empty custom component

* adding todo to move transposeSlot to use mutation observer

* chore: Removing component specific changelog https://github.com/patternfly/patternfly-elements/pull/1235\#discussion_r55674077�5

* chore: Removing discovery doc https://github.com/patternfly/patternfly-elements/pull/1235\#discussion_r556740943

* fix: incorrect success color being tested

* fix: removed prefixed slot names

* chore: improve description of public copyURLToClipboard function

* chore: removing branch leak change to storybook

* chore: removing old references to pfe-toast

* chore: removing boilerplate sass docs

* feat: using icon-size var for icon width

* chore: removing unneaded attribute name on property definition

* feat: Us267056 pfe clipboard  copied duration (#1289)

* feat: added copiedTimeout property. Made copied state setTimeout dynamic.

* feat: change name to copied-duration. updated docs

* test: added new test for copiedDuration

* chore: removing unneaded attribute name on property definition

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* chore: trigger netlify

* chore: trigger visual regression build

* feat: added vars to control padding on host and margin on icon (#1290)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* feat: moving getTemplate to a separate branch

* Update elements/pfe-clipboard/demo/pfe-clipboard.story.js

Co-authored-by: [ Cassondra ] <castastrophe@users.noreply.github.com>

* Update elements/pfe-clipboard/src/pfe-clipboard.js

Co-authored-by: [ Cassondra ] <castastrophe@users.noreply.github.com>

* chore: updated copyURLToClipboard api docs

* chore: remove commented out code

* feat: cleaning up color variable implementation

* feat: remove isInteger to support IE11

* feat: adding vue and react tests 📋

* feat: adding vrt baseline for pfe-clipboard

* fix: fixed IE11 copied state change:

* feat: removing default slot

* feat: added typography to demo

* feat: updated vrt baseline snapshot

* feat: added new variable hooks to Readme

* feat: added screenshot to elements page listing

* chore: stubbed out changelog addition for pfe-clipboard

* chore: added engine and browserlist to package.json

* US267056-pfe-clipboard: Icon Color Custom Property (#1301)

* feat: adding icon color variable

* feat: fixed variable names on readme, corrected pfe-icon--Color

* feat: tie text--muted color variable to icon--Color

* fix: fixed icon fallback test

* fix: updated vrt screenshots

Co-authored-by: [ Cassondra ] <carobert@redhat.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: [ Cassondra ] <castastrophe@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready to merge styles An issue or PR pertaining only to CSS/Sass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants