Code Monkey home page Code Monkey logo

design-system's Introduction

Salesforce Lightning Design System

Build Status Dependabot Status

Welcome to the source code repository for Salesforce Lightning Design System, brought to you by Salesforce UX.

SLDS is...

  • Tailored for building Salesforce apps: Using the Lightning Design System markup and CSS framework results in UIs that reflect the Salesforce Lightning look and feel.
  • Continuously updated: As long as you’re using the latest version of the Lightning Design System, your pages are always up to date with Salesforce UI changes.

Getting Started

This project utilizes Storybook for component development. If you would like to know more about Storybook or how it works, check out their website.

Project Installation & Setup:

  1. Clone the repository down locally.
  2. cd into the project and run npm install to install all project dependencies.

Running the Development Environment:

The Storybook development environment can be started by running npm start

Whenever you add, remove, or alter a component's css annotation metadata, you'll need to restart Storybook to see those changes.

Configuring Node and NVM

Node v14 is recommended for use with the Design System repository, and NVM is the recommended choice for managing multiple versions of Node on your computer.

A .nvmrc file is included in this project to aid in local development. To utilize it for setting your project's node version, run nvm use in the root of the directory. Additionally, you can set up a deeper shell integration for automatically invoking the nvmrc file when you change into the project directory by following these instructions.

Developing in Storybook

Once the development server is started with npm start, you can load it at http://localhost:9002.

Annotations

See the annotations guide.

Tasks

npm start

Starts the Storybook server for local development.

npm run gulp -- lint

Lint the code base for syntax and stylistic errors.

# Lint indentation, Sass, JavaScript files
npm run gulp -- lint

# Lint languages independently
npm run gulp -- lint:sass
npm run gulp -- lint:javascript
npm run gulp -- lint:javascript:test
npm run gulp -- lint:spaces
npm run gulp -- lint:html

# HTML5 validation
npm run gulp -- lint:vnu
# HTML5 validation on comma separated blueprint names
npm run gulp -- lint:vnu --components button,path,trees

# a11y validation
npm run gulp -- lint:a11y
# a11y validation on comma separated blueprint names
npm run gulp -- lint:a11y --components button,path,trees

# Lint examples using vnu, aXe, slds validation, and HTML5 validation
npm run gulp -- lint:examples

Pull Request Checks

To run all the checks a pull request will run in Travis use the following command.

# To run every check against all blueprints
npm run pr-checks

# To run every check but target certain blueprints for slow checks like aXe and vnu
npm run pr-checks -- --components button,path,trees

Compilation

npm run build-dist

Generate the Lightning Design System into the .dist directory.

npm run gulp -- styles

Compile Sass to CSS into .assets/styles.

npm run gulp -- clean

Delete temporary build and local files.

Stats

npm run gulp -- styles:stats: Useful stats about the project's deliverables.

Tests

npm test: run all tests, except axe/a11y tests

npm run test:a11y: run axe tests for accessibility violations Results are saved into ./__tests__/a11y/results.

Release

npm release:site: build and release the framework and site

Requires heroku access to build and release the site.

Troubleshooting

See the troubleshooting guide.

Contributing Back to SLDS

See the contributing guide.

Licenses

Got Feedback?

Please open a new GitHub Issue.

design-system's People

Contributors

alexiscordova avatar amarnath510 avatar ambreeen avatar amyleesalesforce avatar aputinski avatar brandonferrua avatar brunofonzi avatar chriscorwin avatar donnieberg avatar dottenpixel avatar engai avatar erlswtshrt avatar fredboyle avatar greenkeeper[bot] avatar ishakasliwal avatar jessebrack avatar jonnyl avatar kaelig avatar kflournoy-sf avatar lokeshrj avatar manjunathkalburgi avatar norvinder avatar owenschoppe avatar ravki avatar rickschmoo avatar sitaggart avatar srohde avatar stefsullrew avatar sumugapadman avatar zahnster avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

design-system's Issues

How to resolve "Unsafe attempt to load URL" ?

When developing in my sandbox and using the SLDS framework, referencing a SVG throws a console error of "Unsafe attempt....".

My developer console will be: https://cs41.salesforce.com/...
And my actual sandbox URL will be: https://c.cs41.visual.force.com/...

I assumed that added a whitelisted CORS URL would resolve this, but it does not. I ASSUME that all will be well in production, but how do I actually know?

Browser: Chrome (latest)
Graphics that fails: but ALL of them do

Any guidance?

Thanks,
Paul

How to markup a dropdown menu in button group

I can create a button with dropdown menu and there are examples of markup in official page.
But when it comes to set a dropdown menu button in button group, it seems there is no example.

I tried following:

  <div class="slds-button-group" role="group">
    <button class="slds-button slds-button--neutral">Save</button>
    <div class="slds-dropdown-trigger">
      <button class="slds-button slds-button--icon-border-filled">
        <svg aria-hidden="true" class="slds-button__icon">
          <use xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#down"></use>
        </svg>
        <span class="slds-assistive-text">More Actions</span>
      </button>
      <div class="slds-dropdown slds-dropdown--left slds-text-heading--label slds-dropdown--menu">
        <ul class="slds-dropdown__list" role="menu">
          <li href="#" class="slds-dropdown__item"><a href="#" class="slds-truncate" role="menuitem">Save as</a></li>
          <li href="#" class="slds-dropdown__item"><a href="#" class="slds-truncate" role="menuitem">Delete</a></li>
        </ul>
      </div>
    </div>
  </div>

But the result includes spacer in buttons (not grouped).

dropdown menu in button group

Is there any correct way to achieve the UI ?

anchor buttons formatting

According to the documentation for buttons
https://www.lightningdesignsystem.com/components/buttons
it should be possible to use html button or a elements.

It does not work for icons.
In the example, the first is a button slds-button--icon-border-filled
the second/third is a a slds-button--icon-container
same is if the a is a slds-button--icon-border/-filled

The exception would be that the icon is centered (as with buttons).

2015-09-16_22-48-27

Unable to show content just for x-small and small form factor

I'm trying to display a button if the form factor of the device is x-small or small, but hide if for medium and large. The behaviour I am looking for is essentially hidden-md and hidden-lg from Boostrap.

I've tried using the visibility classes : slds-x-small-show-only and slds-small-show-only, but the problem is these default to hiding the element and only showing it if the form factor matches the media query:

  .slds .slds-x-small-show-only {
    display: none; }
  @media (min-width: 320px) and (max-width: 479px) {
      .slds .slds-x-small-show-only {
        display: block; }

thus whichever style class appears last hides the element if the media query doesn't match.

In version 0.9.2 slds-small-show-only appears after slds-x-small-show-only, so the content is hidden on x-small by the small default of display:none

Some of the CSS is missing

I have found out, that some of the CSS is missing in 0.9.2 even when we have working example under components section.
For example there is validation example under forms section, but when I use the same exact classes nothing works until I manually copy CSS from example page into my page.

Enhancement: add bower.json and register "slds" bower package

Should be fairly easy per these instructions: http://bower.io/docs/creating-packages/#register

Doing this would make it easier to import the design-system into stand alone web apps. SF Foundation did this with bootstrap-sf1 as seen here: https://github.com/SalesforceFoundation/bootstrap-sf1/blob/master/bower.json and http://bower.io/search/?q=bootstrap-sf1

If it were up to me, I'd name it something short like slds, but that might be so short as to not be descriptive enough.

Checkbox in Horizontal Layout followup

I saw your solution to #11 in v0.9.2

The approach is "unusual" as checkboxes usually do not have multiple labels - only if you represent multi-select as checkboxes. Also I think, it should be possible to flip between horizontal and stacked layout - i.e. with the same html code.

Suggestion:

<div class="slds-form-element">
  <div class="slds-placeholder"><!-- empty --></div>
  <label class="slds-checkbox"> .... </label>
</div>

where the
slds-placeholder basically acts like a form-element__label

  • display: inline-block if within form--horizontal otherwise none
  • width 33%

and adding to slds-checkbox if within form--horizontal

  • width: calc(66% - (0.75rem * 2));
  • text-align: left

... or

<div class="slds-form-element">
  <div class="slds-form-element__label"><!-- empty --></div>
  <label class="slds-form-element__control"> .... </label>
</div>

Advantage:

  • same html structure as normal fields, just with empty label
  • fewer, less complex css changes (just handling empty label in stacked)

Select with [size] followup

I saw your solution to #17 in 0.9.2

just to note that

  &[size] {
    ....
    option {
      padding: $spacing-x-small;
    }
  }
  • the actual select layout height depends on how many options there are
    (e.g. with size=4 and two selects side-by-side the height is different, if the first contains 3 and the second has 4 options)
  • causes the select list and window to resize/re-render, when fewer as the [size] options are displayed (e.g. dynamically setting/removing options)

the options I think are either

  • calculating/setting the height in px of the select element based on the [size] value
  • remove the padding as the (mobile) browser handles it natively (my suggestion)

Issue with ActionFunction when element has svg and 'use' tag

I'm currently using a icon button to fire an actionFunction. I've found that when the svg has a 'use' tag referencing to icons or images the action is fired but the page is not rerendered. There's also have a status component that is displayed but never goes out, seems like the action never end.
Using svg with <circle ... for example works fine.

JS - design system component interact

Hi,
I am using this SLDS in my one of visualforce page. I was checking the picklist component. one thing i found upon selecting any picklist value it is not reflecting means changing to the picklist value.In the documentation https://www.lightningdesignsystem.com/components/picklists/ how the picklist is properly behaving. Do i need to add any js file or what to do . And what is this attribute 'data-reactid'.Is it anything related to the above problem. Also is this script creating 'reactid' .
"LIGHTNING_DESIGN_SYSTEM.init('components/picklists/index.jsx')"
sorry for if it sounds silly. But I really need to make it work on my this VF page.
Please reply asap.

Thank You.

lightning design system for horizontal form

Hi,
As this is not an issue but i had one question regarding this please check below
how to display the fields in horizontal way inside apex:repeat tag of salesforce with SLDS classes

<
<apex:inputField styleclass="slds-input--small" value="" rendered="" required=""/>


<apex:inputField styleclass="slds-input--small" value="" rendered="" />

</apex:repeat>

horizontal list with dividers on multiple lines

When rendering a horizontal list with dividers, everything is fine the content fits on one line

            <ul class="slds-list--horizontal slds-has-dividers">
              <li class="slds-list__item">Dart Language Overview</li>
              <li class="slds-list__item">Development environment, Tooling</li>
              <li class="slds-list__item">Lightning Design System</li>
              <li class="slds-list__item">Demo</li>
            </ul>

if the content does not fit on one line, the items themselves are adjusted with the dots as the last character in the previous entry.

The expectation is that the list items are wrapped e.g.

* Dart Language Overview * Development Environment, Tooling
* Lightning Design System * Demo

although would be fine if wrapped on word break, e.g.

* Dart Language Overview * Development Environment, Tooling * Lightning 
Design System * Demo

image

Removing slds wrapper and prefixes

Hello,

As I'd like to use only one framework and that collisions will not be possible, I'm wondering if there is a way to remove the slds body class and the slds- class suffix ?

Have a nice day.

The components in "Prototype" stage are not working.

The components that are in "dev ready" stage have been successfully implemented in Visualforce and lightning but those components in "prototype" stage like "picklist,lookups" and many others are not working as desired using the code provided.
Should we wait for any other release when these components will be changed to "Dev Ready" state or we are missing on implementing it using some javascript.

Kindly guide on same.

'$spacing-none' Token for 0-Value Spacing Classes

This is more of a request than an issue. I believe it would be beneficial to have margin and padding override classes for 'none,' which would be used to add 0 value directionally. This could be useful for custom elements that may react unexpectedly as siblings to the provided Lightning Design components.

$spacing-none: 0 !default;

Select has fixed height - ignores size attribute

The default css ignores the size setting for select elements.
.slds-select sets the height to 2.125rem

a fix could be

.slds-select[size] {
  height: inherit;
}

but requires that for single selects the size attribute is not set

2015-09-17_11-32-16

Grid manual sizing not working with slds-grid--vertical

Using manual sizing like slds-size--1-of-2 with slds-grid--vertical does not work.
Apparently slds-size--xxxx is implemented using width : xxxx which obviously does not work with column (should be height : xxxx in that case...).
Maybe a more generic approach using flex-basis : xxxx could solve the problem ?

Disabled Tabs

Hi,

I was using 'tabs--scoped' and noticed that there currently isn't a style for disabled tabs. I think this would be a nice feature (style) going forward. I know some may say just remove the tabs but in some cases you may not want to completely hide the tab.

Example : enable tabs when an action has been completed

Any thoughts for or against this style?

Thanks
Nelson Ramalho

Tree is-open mistakenly rotating _all_ button icons within

At: https://github.com/salesforce-ux/design-system/blob/winter-16/ui/components/trees/flavors/base/index.scss#L66

...we have:

  .#{$css-prefix}is-open .#{$css-prefix}button__icon {
    transform: rotate(90deg);
  }

...which is causing all button icons within an open branch to be rotated, even those in sub-branches that are not open.

Yikes!

screenshot 2015-10-19 17 42 44

A very quick and may need more thought fix:

  .#{$css-prefix}is-open > .#{$css-prefix}tree__item > .#{$css-prefix}button > .#{$css-prefix}button__icon {
    transform: rotate(90deg);
  }

Checkboxes do not work in Salesforce1 with iOS9

Working with a customer they noted that there was an issue with checkboxes on VF in Salesforce1. Funny thing is that this issue was only with iOS9. Simple code to re-produce this was:

Video

After looking into this very extensively, I noticed the issue was caused by the ~'s in the CSS.
.slds .slds-checkbox [type="checkbox"]:checked ~ .slds-checkbox--faux:after{
}

Easy fix was to just swap the "~" for a "+".
Does anyone have any idea why this might be?

Following install and run dev error with node v0.12 plus node v4.x request

Please consider adding engine to the package.json, so people like me don't try node v4.x. Thanks

I used node v0.12, npm i, then npm run dev and ...

Error: Option safe was removed. Use parser: require("postcss-safe-parser")
    at parse (/Users/admin/box/web/design-system/node_modules/postcss/lib/parse.js:18:15)
    at new LazyResult (/Users/admin/box/web/design-system/node_modules/postcss/lib/lazy-result.js:57:24)
    at Processor.process (/Users/admin/box/web/design-system/node_modules/postcss/lib/processor.js:36:16)
    at collectSassVariables (/Users/admin/box/web/design-system/node_modules/@salesforce-ux/aura-css-utils/dist/util.js:108:65)
    at Array.map (native)
    at collectSassVariablesFromFiles (/Users/admin/box/web/design-system/node_modules/@salesforce-ux/aura-css-utils/dist/util.js:129:6)
    at Object.<anonymous> (/Users/admin/box/web/design-system/node_modules/@salesforce-ux/design-system-utils/dist/index.js:75:25)
    at /Users/admin/box/web/design-system/node_modules/stampit/dist/stampit.js:185:31
    at arrayEach (/Users/admin/box/web/design-system/node_modules/lodash/internal/arrayEach.js:15:9)
    at /Users/admin/box/web/design-system/node_modules/lodash/internal/createForEach.js:15:9

It would be great if this worked right after clone. Consider something like for the engine requirement:

    "predev": "node -e 'if(/^v(2|3|4)/.test(process.version)===true){console.log(\"node engine error, looking for node v0.10 <= v0.12\");process.exit(1);}'",

Lightning Design UI Kit

Starting to begin a tablet app that incorporates the new Lightning Design System that you guy's have created. Was looking to see if I could get my hands on a UI kit (psd or sketch) for the design system so I can closely stick to this new UI that has been designed. Thanks!

Pagination?

For data-tables, what is your expected Pagination look?

Contributing

Contributing doc refs to nonexistent master branch

Downloadable Layouts

Everything in the styleguide has downloadable counterparts, except the layouts.
I imagine it would be nice to have these available (including responsive versions) as well.

Visualforce SVG tag issues

Good evening,

I stumbled onto an issue that appears to be a bug within Salesforce that hasn't been solved for quite a few years. When referencing SVG tags in Visualforce, the renderer seems to trip up when encountering XML namespace attributes. For example, if I reference the SVG component as suggested in the document, the "slds-media__body" tag is rewritten to be inside the "slds-media__figure" tag even though it is declared to be a sibling in the template.

<apex:page >
    <apex:stylesheet value="{!URLFOR($Resource.SLDS092, 'assets/styles/salesforce-lightning-design-system-vf.css')}" />
    <apex:form styleClass="slds">
        <!-- Without custom component for SVG -->
        <div class="slds-page-header" role="banner">
            <div class="slds-grid">
                <div class="slds-col slds-has-flexi-truncate">
                    <div class="slds-media">
                        <div class="slds-media__figure">
                            <svg aria-hidden="true" class="slds-icon slds-icon--large slds-icon-standard-opportunity">
                                <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="{!URLFOR($Resource.SLDS092, 'assets/icons/standard-sprite/svg/symbols.svg#opportunity')}" />
                            </svg>
                        </div>
                        <div class="slds-media__body">
                            <p class="slds-text-heading--label">Opportunity</p>
                            <div class="slds-grid">
                                <h1 class="slds-text-heading--medium slds-m-right--small slds-truncate slds-align-middle" title="Test Opportunity">Test Opportunity</h1>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </apex:form>
</apex:page>

My solution thus far has been to create a custom component for the SVG tag, which appears to ensure that the template gets written correctly:

Component:

<apex:component >
    <apex:attribute name="styleClass" type="String" description="Class for svg tag" />
    <apex:attribute name="path" type="String" description="Path for svg tag" />
    <svg aria-hidden="true" class="{!styleClass}">
        <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="{!URLFOR($Resource.SLDS092, path)}" />
    </svg>
</apex:component>

Page:

<apex:page >
    <apex:stylesheet value="{!URLFOR($Resource.SLDS092, 'assets/styles/salesforce-lightning-design-system-vf.css')}" />
    <apex:form styleClass="slds">
        <!-- With custom component for SVG -->
        <div class="slds-page-header" role="banner">
            <div class="slds-grid">
                <div class="slds-col slds-has-flexi-truncate">
                    <div class="slds-media">
                        <div class="slds-media__figure">
                            <c:svg styleClass="slds-icon slds-icon--large slds-icon-standard-opportunity" path="assets/icons/standard-sprite/svg/symbols.svg#opportunity" />
                        </div>
                        <div class="slds-media__body">
                            <p class="slds-text-heading--label">Opportunity</p>
                            <div class="slds-grid">
                                <h1 class="slds-text-heading--medium slds-m-right--small slds-truncate slds-align-middle" title="Test Opportunity">Test Opportunity</h1>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </apex:form>
</apex:page>

Unable to install using npm

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'i',
1 verbose cli 'salesforce-ux/design-system' ]
2 info using [email protected]
3 info using [email protected]
4 verbose install initial load of /Users/vivekmanoharan/Sites/lightning/package.json
5 verbose readDependencies loading dependencies from /Users/vivekmanoharan/Sites/lightning/package.json
6 silly cache add args [ 'salesforce-ux/design-system', null ]
7 verbose cache add spec salesforce-ux/design-system
8 silly cache add parsed spec Result {
8 silly cache add raw: 'salesforce-ux/design-system',
8 silly cache add scope: null,
8 silly cache add name: null,
8 silly cache add rawSpec: 'salesforce-ux/design-system',
8 silly cache add spec: 'github:salesforce-ux/design-system',
8 silly cache add type: 'hosted',
8 silly cache add hosted:
8 silly cache add { type: 'github',
8 silly cache add ssh: '[email protected]:salesforce-ux/design-system.git',
8 silly cache add sshUrl: 'git+ssh://[email protected]/salesforce-ux/design-system.git',
8 silly cache add httpsUrl: 'git+https://github.com/salesforce-ux/design-system.git',
8 silly cache add gitUrl: 'git://github.com/salesforce-ux/design-system.git',
8 silly cache add shortcut: 'github:salesforce-ux/design-system',
8 silly cache add directUrl: 'https://raw.githubusercontent.com/salesforce-ux/design-system/master/package.json' } }
9 verbose addRemoteGit caching salesforce-ux/design-system
10 verbose addRemoteGit salesforce-ux/design-system is a repository hosted by github
11 silly tryGitProto attempting to clone git://github.com/salesforce-ux/design-system.git
12 silly tryClone cloning salesforce-ux/design-system via git://github.com/salesforce-ux/design-system.git
13 verbose tryClone git-github-com-salesforce-ux-design-system-git-019fd4aa not in flight; caching
14 info git [ 'clone',
14 info git '--template=/Users/vivekmanoharan/.npm/_git-remotes/_templates',
14 info git '--mirror',
14 info git 'git://github.com/salesforce-ux/design-system.git',
14 info git '/Users/vivekmanoharan/.npm/_git-remotes/git-github-com-salesforce-ux-design-system-git-019fd4aa' ]
15 verbose mirrorRemote salesforce-ux/design-system git clone git://github.com/salesforce-ux/design-system.git
16 verbose setPermissions salesforce-ux/design-system set permissions on /Users/vivekmanoharan/.npm/_git-remotes/git-github-com-salesforce-ux-design-system-git-019fd4aa
17 verbose resolveHead salesforce-ux/design-system original treeish: master
18 info git [ 'rev-list', '-n1', 'master' ]
19 error git rev-list -n1 master: fatal: ambiguous argument 'master': unknown revision or path not in the working tree.
19 error git rev-list -n1 master: Use '--' to separate paths from revisions, like this:
19 error git rev-list -n1 master: 'git [...] -- [...]'
20 silly tryHTTPS attempting to clone git+https://github.com/salesforce-ux/design-system.git
21 silly tryClone cloning salesforce-ux/design-system via git+https://github.com/salesforce-ux/design-system.git
22 verbose tryClone https-github-com-salesforce-ux-design-system-git-176b616a not in flight; caching
23 info git [ 'clone',
23 info git '--template=/Users/vivekmanoharan/.npm/_git-remotes/_templates',
23 info git '--mirror',
23 info git 'https://github.com/salesforce-ux/design-system.git',
23 info git '/Users/vivekmanoharan/.npm/_git-remotes/https-github-com-salesforce-ux-design-system-git-176b616a' ]
24 verbose mirrorRemote salesforce-ux/design-system git clone https://github.com/salesforce-ux/design-system.git
25 verbose setPermissions salesforce-ux/design-system set permissions on /Users/vivekmanoharan/.npm/_git-remotes/https-github-com-salesforce-ux-design-system-git-176b616a
26 verbose resolveHead salesforce-ux/design-system original treeish: master
27 info git [ 'rev-list', '-n1', 'master' ]
28 error git rev-list -n1 master: fatal: ambiguous argument 'master': unknown revision or path not in the working tree.
28 error git rev-list -n1 master: Use '--' to separate paths from revisions, like this:
28 error git rev-list -n1 master: 'git [...] -- [...]'
29 silly trySSH attempting to clone [email protected]:salesforce-ux/design-system.git
30 silly tryClone cloning salesforce-ux/design-system via [email protected]:salesforce-ux/design-system.git
31 verbose tryClone git-github-com-salesforce-ux-design-system-git-5b98b807 not in flight; caching
32 info git [ 'clone',
32 info git '--template=/Users/vivekmanoharan/.npm/_git-remotes/_templates',
32 info git '--mirror',
32 info git '[email protected]:salesforce-ux/design-system.git',
32 info git '/Users/vivekmanoharan/.npm/_git-remotes/git-github-com-salesforce-ux-design-system-git-5b98b807' ]
33 error git clone --template=/Users/vivekmanoharan/.npm/_git-remotes/_templates --mirror [email protected]:salesforce-ux/design-system.git /Users/vivekmanoharan/.npm/_git-remotes/git-github-com-salesforce-ux-design-system-git-5b98b807: Cloning into bare repository '/Users/vivekmanoharan/.npm/_git-remotes/git-github-com-salesforce-ux-design-system-git-5b98b807'...
33 error git clone --template=/Users/vivekmanoharan/.npm/_git-remotes/_templates --mirror [email protected]:salesforce-ux/design-system.git /Users/vivekmanoharan/.npm/_git-remotes/git-github-com-salesforce-ux-design-system-git-5b98b807: Warning: Permanently added the RSA host key for IP address '192.30.252.129' to the list of known hosts.
33 error git clone --template=/Users/vivekmanoharan/.npm/_git-remotes/_templates --mirror [email protected]:salesforce-ux/design-system.git /Users/vivekmanoharan/.npm/_git-remotes/git-github-com-salesforce-ux-design-system-git-5b98b807: Permission denied (publickey).
33 error git clone --template=/Users/vivekmanoharan/.npm/_git-remotes/_templates --mirror [email protected]:salesforce-ux/design-system.git /Users/vivekmanoharan/.npm/_git-remotes/git-github-com-salesforce-ux-design-system-git-5b98b807: fatal: Could not read from remote repository.
33 error git clone --template=/Users/vivekmanoharan/.npm/_git-remotes/_templates --mirror [email protected]:salesforce-ux/design-system.git /Users/vivekmanoharan/.npm/_git-remotes/git-github-com-salesforce-ux-design-system-git-5b98b807:
33 error git clone --template=/Users/vivekmanoharan/.npm/_git-remotes/_templates --mirror [email protected]:salesforce-ux/design-system.git /Users/vivekmanoharan/.npm/_git-remotes/git-github-com-salesforce-ux-design-system-git-5b98b807: Please make sure you have the correct access rights
33 error git clone --template=/Users/vivekmanoharan/.npm/_git-remotes/_templates --mirror [email protected]:salesforce-ux/design-system.git /Users/vivekmanoharan/.npm/_git-remotes/git-github-com-salesforce-ux-design-system-git-5b98b807: and the repository exists.
34 verbose stack Error: Command failed: git clone --template=/Users/vivekmanoharan/.npm/_git-remotes/_templates --mirror [email protected]:salesforce-ux/design-system.git /Users/vivekmanoharan/.npm/_git-remotes/git-github-com-salesforce-ux-design-system-git-5b98b807
34 verbose stack Cloning into bare repository '/Users/vivekmanoharan/.npm/_git-remotes/git-github-com-salesforce-ux-design-system-git-5b98b807'...
34 verbose stack Warning: Permanently added the RSA host key for IP address '192.30.252.129' to the list of known hosts.
34 verbose stack Permission denied (publickey).
34 verbose stack fatal: Could not read from remote repository.
34 verbose stack
34 verbose stack Please make sure you have the correct access rights
34 verbose stack and the repository exists.
34 verbose stack
34 verbose stack at ChildProcess.exithandler (child_process.js:203:12)
34 verbose stack at emitTwo (events.js:87:13)
34 verbose stack at ChildProcess.emit (events.js:172:7)
34 verbose stack at maybeClose (internal/child_process.js:817:16)
34 verbose stack at Socket. (internal/child_process.js:319:11)
34 verbose stack at emitOne (events.js:77:13)
34 verbose stack at Socket.emit (events.js:169:7)
34 verbose stack at Pipe._onclose (net.js:469:12)
35 verbose cwd /Users/vivekmanoharan/Sites/lightning
36 error Darwin 14.0.0
37 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "salesforce-ux/design-system"
38 error node v4.1.1
39 error npm v2.14.4
40 error code 128
41 error Command failed: git clone --template=/Users/vivekmanoharan/.npm/_git-remotes/_templates --mirror [email protected]:salesforce-ux/design-system.git /Users/vivekmanoharan/.npm/_git-remotes/git-github-com-salesforce-ux-design-system-git-5b98b807
41 error Cloning into bare repository '/Users/vivekmanoharan/.npm/_git-remotes/git-github-com-salesforce-ux-design-system-git-5b98b807'...
41 error Warning: Permanently added the RSA host key for IP address '192.30.252.129' to the list of known hosts.
41 error Permission denied (publickey).
41 error fatal: Could not read from remote repository.
41 error
41 error Please make sure you have the correct access rights
41 error and the repository exists.
42 error If you need help, you may report this error at:
42 error https://github.com/npm/npm/issues
43 verbose exit [ 1, true ]

Rows in generic tile are misaligned if <p class="slds-truncate"> is empty

I'm using several instances of the generic title outlined here: http://www.lightningdesignsystem.com/components/tiles in a lightning component.

One thing I've noticed is that if the <p class="slds-truncate"> tag is missing content (rather it is empty), then the next row is pushed up into its place, resulting in a mismatch between the label and the element.

The easy fix currently is to add a non-breaking space at the end of the values, but regardless there should be a less hacky way to handle empty p tags.

Fallback support for IE10 & IE9

Hi, wanted to start using the lightning system for a new app I'm developing,
but the hard requirement of having IE11 or the latest version of chrome/ firefox scares me a bit.

I think especially in the corporate world where there are companies that can't upgrade all of their systems that easily will still make use of older browsers.

Are there any plans to support some fallback css/ js to make sure the pages aren't completely broken on those systems?

Mixed ways to load modules

I see in sources mixed ways how modules used. One file can contain both ES6 and CommonJS ways.
Is it normal or should be done in consistent way?

Tabs Component Expected Markup

I played with the Tabs Component, and I used the Expected Markup section to make it work using JS. This section mentions 3 markups:

  • aria-selected
  • tabindex
  • aria-labelledby

As this was not working, I easily found that I need to change slds-show and slds-hide, which are described in another page.

Lastly, I also had to switch the slds-active class.

I know all this seems obvious once understood, but all this is pretty new, and also most of us are back-end apex developers that have been relying on apex tags to manage all this CSS stuff for us.

So my point is:

  • Maybe the slds-active class should be documented in the Expected Markup section (otherwise I'm pretty sure some guys will forget to switch it)
  • I understand the slds-show and slds-hide because that's true it's pretty obvious and writing about it on all component wouldn't be the best choice, but maybe having a way to search true the whole documentation would be great. I guess there will be more and more components, and having a search engine would be a nice way to find information on classes that are explained somewhere else.

Visualforce slds-is-required not working

I'm noticing an issue where slds-is-required isn't working with Visualforce pages. I believe this has to do with .slds being specified after the >. For example:

.slds-is-required > .slds .slds-radio

...should be...

.slds-is-required > .slds-radio

Getting Started on Heroku feedback

The note in Step 1 offering to let you clone an existing repository should be before Step 1.

The note says after cloning you can go to step 5. That's incorrect. You have to do a "npm install" before going to step 5.

Datepicker - year dropdown markup question

I'm trying to implement JS for the datepicker, and looking at the preview for the New Lightning Experience in a Winter '16 org, it looks like the year dropdown is using a <select> where as the SLDS's markup uses a <button> tag. Which one do you recommend we use? Also, should we base the datepicker's behavior (what triggers it to open, where it focuses, how it closes) on the New Lightning Experience's behavior? Thanks

Notifications/Toast Messages in Salesforce1 app.

Hi There

I have used Toast Messages for various notifications in my app (VF page with JS remoting using SLDS), this all works fine in the browser, but in the Salesforce1 app the alerts appear at the top of the document regardless of where on the page the user is currently scrolled.

I assume this is due to the way the pages are framed in, as I've had problems with this in SF1 app before, just wondering if their are any suggested workarounds?

Cheers
Chris

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.