From 8b840365db7e8a6fe8db90ffd68cdada55e268bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Gomes?= Date: Fri, 12 Dec 2014 12:23:58 +0000 Subject: [PATCH] Renaming wsk-ripple--recentering to wsk-ripple--center --- app/styleguide/checkbox/checkbox.js | 4 ++-- app/styleguide/radio/radio.js | 4 ++-- app/styleguide/ripple/ripple.js | 2 +- app/styleguide/textfield/textfield.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/styleguide/checkbox/checkbox.js b/app/styleguide/checkbox/checkbox.js index 2debd255..4d36d292 100644 --- a/app/styleguide/checkbox/checkbox.js +++ b/app/styleguide/checkbox/checkbox.js @@ -15,11 +15,11 @@ function Checkbox(l) { fakeCheckbox.classList.add('Checkbox'); fakeCheckbox.tabIndex = 0; if (checkboxElement.classList.contains('wsk-js-ripple-effect')) { - checkboxElement.classList.add('wsk-ripple--recentering'); + checkboxElement.classList.add('wsk-ripple--center'); var rippleContainer = document.createElement('span'); rippleContainer.classList.add('Checkbox-rippleContainer'); rippleContainer.classList.add('wsk-js-ripple-effect'); - rippleContainer.classList.add('wsk-ripple--recentering'); + rippleContainer.classList.add('wsk-ripple--center'); var ripple = document.createElement('span'); ripple.classList.add('wsk-ripple'); diff --git a/app/styleguide/radio/radio.js b/app/styleguide/radio/radio.js index f64a049d..f28485f0 100644 --- a/app/styleguide/radio/radio.js +++ b/app/styleguide/radio/radio.js @@ -11,11 +11,11 @@ function RadioButton(btnElement, labelElement) { labelElement.appendChild(innerCircle); if (btnElement.classList.contains('wsk-js-ripple-effect')) { - btnElement.classList.add('wsk-ripple--recentering'); + btnElement.classList.add('wsk-ripple--center'); var rippleContainer = document.createElement('span'); rippleContainer.classList.add('wsk-radio-button__ripple-container'); rippleContainer.classList.add('wsk-js-ripple-effect'); - rippleContainer.classList.add('wsk-ripple--recentering'); + rippleContainer.classList.add('wsk-ripple--center'); var ripple = document.createElement('span'); ripple.classList.add('wsk-ripple'); diff --git a/app/styleguide/ripple/ripple.js b/app/styleguide/ripple/ripple.js index c21ed863..3d9473df 100644 --- a/app/styleguide/ripple/ripple.js +++ b/app/styleguide/ripple/ripple.js @@ -122,7 +122,7 @@ window.addEventListener('load', function() { for (var i = 0; i < rippleElements.length; i++) { var rippleElement = rippleElements[i]; var recentering = - rippleElement.classList.contains('wsk-ripple--recentering'); + rippleElement.classList.contains('wsk-ripple--center'); new RippleOwner(rippleElement, recentering); } }); diff --git a/app/styleguide/textfield/textfield.js b/app/styleguide/textfield/textfield.js index 4378aeb0..3a62a833 100644 --- a/app/styleguide/textfield/textfield.js +++ b/app/styleguide/textfield/textfield.js @@ -46,7 +46,7 @@ function ExpandableIcon(iconElement) { container.classList.add('wsk-textfield-expandable-icon__ripple__container'); container.classList.add('wsk-js-ripple-effect'); - container.classList.add('wsk-ripple--recentering'); + container.classList.add('wsk-ripple--center'); var ripple = document.createElement('span'); ripple.classList.add('wsk-ripple');