-
Notifications
You must be signed in to change notification settings - Fork 466
Removing the colors from all the font mixins. #766
Conversation
Before we can merge this we need to update the classes (e.g. |
We actually should remove the colors from the classes as well—it’d be confusing for designer/developer communication if the properties of same-named classes and mixins differ that drastically. |
I thought we agreed that these colors are useful to help developers quickly style body text, and that we want to encourage them to use the correct color? |
Although now that I'm seeing concerns from SharePoint where these classes aren't compatible with theming, maybe we do want to remove the color after all. We should just consider recommending the standard text color somewhere in our documentation. |
I agree - documentation is key as the |
Yes--where the discussion netted out was that it would make more sense for the classes to match the mixins, but recommend or provide a mechanism (e.g. a This would definitely need to be reflected on the site--probably both in the typography section as well as the starter template. |
@dzearing, could you merge in the latest changes from |
Working on it |
* Font size and small margin/padding adjustments for TextField * Bump Label font size from 12px -> 14px * Add initial DetailsList bits * Update base icon set to MDL2 glyphs * Update SearchBox to use MDL2 icons & spacing * Update CommandBar to use MDL2 icons and spacing * Add user-select mixin * Add initial DetailsList styles * Add initial DetailsLIst markup * Add internationalization mixins * Switch SearchBox's "x" icon to use Cancel instead of Clear, which is larger * Switch CommandBar's Search to use "Cancel" icon instead of "Clear" to match SearchBox * Add classes & styles for icons & text within DetailsRow cells * Import DetailsList in Fabric.Components * Update Dropdown to use MDL2 icon, spacing, and colors * Update Toggle to use MDL2 styles and spacing * Update TextField spacing and bump font size for multiline variants * Update Button to use MDL2 icons and spacing * Fix all the linting issues from the merge * Started mdl2-ifying. * Added responsive font size. * added api methods and removed extra chevron. * changed detailslist to hbs and commented out jquery. * fixed build issues. * Adjusted margins for responsive behavior. * Added comment to DetailsList handlebars file about future implementation. * Button & Toggle as mdl2 (OfficeDev#610) * Button as MDL2 * Toggle as MDL2 * Remove outline from toggle-field. Update hover/focus state for is-selected toggle * Update transition-property to include border-color * Add styles for checkbox and radio button - convert :before and :after to mdl2 * Remove radio button styles from checkbox * Clean up radio button styles * Update checkbox to use checkbox-field class. Linting.js update to fix issues with gulp watch * Update radiobutton.ts to be independent of checkbox.ts. Clean up RadioButton scss * Clean up checkbox scss. Change radio button li to div * Change checkbox to use div and i elements instead of pseudo elements * Update RadioButton to use div elements and not pseudo elements. Adjust transition for checkbox and radio button * Speed up transition on checkbox and radiobutton * Fix linting warnings * Commandbar updates. * Updates to checkbox label and fieldBox for consistent alignment * Clean up checkbox and radiobutton markup and styles * remove listeners, changed the way the main area resizes * fixed clear vs close issue with blur and click * bug fixes. code cleanup. * Clean up checkbox scss, add variables, update styles for checkmark icon * Update and clean up radio button scss * added icon variables, ramp and adjustments file. * Code review adjustments and added xs size * searchbox mdl2 start. added additional pseudo element semilcolons for build. * searchbox mdl2 progress. * commandbar fixes from searchbox changes. * Code review changes. * adjusted responsive states. * Clean up checkbox and radiobutton scss to clear build errors * Fix pseudo element build errors in scss files * updated messagebar icons with mdl2. * removed test code. * Remove unneccessary styles from checkbox scss * Chevron down Dropdown mdl2 update. * Changed lineheight to padding for IE and Edge. * Add high contrast styles to checkbox and radiobutton * Remove trailing whitespace * Use checkmark icon mixin instead of unicode value in checkbox scss * ContextualMenu MDL2 update. * Update checkbox and radiobutton with aria-disabled when disabled. Remove pointer-events: none, add check in ts to not include click event if disabled * Remove ms-u-normalize from radio button and checkbox, add only box-sizing * Added close on click of contextual menu. Added new colors to Fabric. * fixed issue where contextualmenus wouldn't close when they were clicked. * fixed issue with ie and dispatching events. fixed issue with menus not closing. fixed issue with being able to click disabled list items. * Corrected spelling and order of new colors. Added comment for hosts variable. Added constant for css class. * Remove old HTML component templates that are now in the documentation folder * Tidy up component JSON files * Remove outdated usage instructions and update dependencies * Add a plugin to output escaped HTML entities for reference and copy-paste * Output code for breadcrumb example * Removed non-existent Disconnected Fixed panel Scrolling issues Fixed CSSNano aggressive options. * Removing test paragraph * MDL2 update. * Fixed incorrect color variable name that was blocking build. * IE fix for underline variant * placeholder text adjustments. * chore(package): update gulp-connect to version 4.2.0 https://greenkeeper.io/ * changed height to 32px. * Fixed documentation bug for underlined focus state. * Update ROADMAP.md * Update icon variable names to match typography variables * Fix icon var in dropdown * chore(package): update typescript to version 1.8.10 https://greenkeeper.io/ * Fix build errors in MDL2 branch * Fix icon size variable name * Updates CONTRIBUTING.md with proper labels * Fix typo for feature-request label * chore(package): update walk-sync to version 0.3.0 https://greenkeeper.io/ * chore(package): update gulp-connect to version 5.0.0 https://greenkeeper.io/ * Adds time picker component request * Update theme colors * Update README to link to Office UI Fabric JS * Remove all components and documentation pages for components * Remove samples that use components, as these should be in the Fabric JS repo * Remove old icon sample, as it's all MDL2 now * Remove Fabric's main components SCSS * Remove Handlebars tempting * Take out build tasks related to components * Add proper cross links to JS and React repos * Removing the rest of the component and sample code. * Remove component-related items from the roadmap * Set the line-height to 'inherit', so that icons are treated like any other text span * Remove line height (inherit is unnecessary as that's the default value) * Update Bower and NPM package names and URLs * Update NuGet package information * Disable Travis email notifications * Update Bower configuration Fixes OfficeDev#763. This PR updates the Bower configuration to include only `fabric.css`. * Fix minification on fabric.min.css * Fixes broken link in README * Adding PACKAGES.md file * Adding 2.6.1 get started docs and updates * Fixing typos * Update package names and add links * Remove component-related code from BUILDING.md * Rename to V2GETSTARTED.md * Fix SASS mixins placeholder * Revert "Fix SASS mixins placeholder" This reverts commit 13109b5. * Change from comma separated selectors to separate selector blocks. See http://www.codechewing.com/library/create-sass-mixin-for-styling-placeholders-css/ for information. * Add skype icons back to included icons * Create mixins for icon sizes and move class outputs to the outputs file * Fixing invalid references * Fixing incorrect links * Fixing Fabric typo * Removing redundant wording * Changing to UI components * Remove high contrast link colors since the browser will handle link colors correctly * Update bundling docs Update the docs for bundling to be specific only to Fabric Core. This removes all references to Fabric JS components. * Basic functionality of localhost doc working. Todo: removed unused functions and files, style navigation * Clean up documentation.js in gulp, add mdl2 icons to icon-page, clean up sass files (in progress still) * Cleaning up unused sass files (in progress) * Clean up sass files * Sass cleanup * Update icons with full fabric mdl2 set. Add icons.json file * Update fabric icons output * Clean up output file * Update icons.json with fontname and version number * Add an 'ms-Fabric' base/wrapper component that sets a base font-family and color. * Removing the colors from all the font mixins. (OfficeDev#766) * Remove base font-family for now * Update package version for NPM and Bower * Removes TUTORIAL * Removing tutorial images * Guts ROADMAP.md file and points to Trello board * Add line to roadmap about new requests * Quick typo fix
Fixes #767
We hit numerous issues when using ms-font-X on anything because it hardcodes the foreground color, rather than allowing the use case to specify. This creates all sorts of nasty problems trying to get colors to work because you end up making rules like:
.odoMyFooLink.ms-Link.ms-font-s:visited {
color: red;
}
Which totally breaks when someone changes the font to be regular...