Skip to content

Commit

Permalink
Merge branch 'develop' into scrollbarWidth
Browse files Browse the repository at this point in the history
  • Loading branch information
lubber-de authored Mar 15, 2024
2 parents 2592778 + 7243642 commit ce75422
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# These are supported funding model platforms

github: [y0hami, lubber-de]
github: [lubber-de]
14 changes: 2 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ Fomantic includes an interactive installer to help setup your project.

| Environment | Install Command | Repository | Third-Party |
|-------------|---------------------------------------|------------------------------------------------------------------|-------------|
| CSS Only | `npm install fomantic-ui-css` | [Fomantic-UI-CSS](https://github.com/fomantic/Fomantic-UI-CSS) | |
| LESS | `npm install fomantic-ui-less` | [Fomantic-UI-LESS](https://github.com/fomantic/Fomantic-UI-LESS) | |
| CSS Only | `npm install fomantic-ui-css` | [Fomantic-UI-CSS](https://github.com/fomantic/Fomantic-UI-CSS) | |
| LESS | `npm install fomantic-ui-less` | [Fomantic-UI-LESS](https://github.com/fomantic/Fomantic-UI-LESS) | |
| SASS | `gem 'fomantic-ui-sass'` | [Fomantic-UI-SASS](https://github.com/fomantic/Fomantic-UI-SASS) ||

---
Expand All @@ -94,20 +94,10 @@ Before creating a pull request be sure to read the [Contributing Guide](CONTRIBU

## Sponsors

### Infrastructure hosted and powered by [DigitalOcean](https://www.digitalocean.com/?utm_medium=opensource&utm_source=fomantic)
[![DigitalOcean](https://opensource.nyc3.cdn.digitaloceanspaces.com/attribution/assets/PNG/DO_Logo_Horizontal_Blue.png)](https://www.digitalocean.com/?utm_medium=opensource&utm_source=fomantic)

Sign up now and get $100 in credit for 60 days! [Sign up here!](https://m.do.co/c/bece3e1afb7f)


### Cross-browser testing provided by [BrowserStack](https://www.browserstack.com)
[![BrowserStack](https://cdn.rawgit.com/fomantic/Fomantic-UI-Docs/35180e95/server/raw/images/browserstack.png)](https://www.browserstack.com)


### IDE's provided by [JetBrains](https://www.jetbrains.com?from=Fomantic-UI)
[![JetBrains](https://fomantic-ui.com/images/jetbrains.svg)](https://www.jetbrains.com?from=Fomantic-UI)

---

#### Credit
Semantic-UI was beautifully crafted by [@jlukic](https://github.com/jlukic)
7 changes: 6 additions & 1 deletion src/definitions/modules/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -3468,7 +3468,12 @@
return $selectedMenu.hasClass(className.leftward);
},
clearable: function () {
return $module.hasClass(className.clearable) || settings.clearable;
var hasClearableClass = $module.hasClass(className.clearable);
if (!hasClearableClass && settings.clearable) {
$module.addClass(className.clearable);
}

return hasClearableClass || settings.clearable;
},
disabled: function () {
return $module.hasClass(className.disabled);
Expand Down
6 changes: 3 additions & 3 deletions src/definitions/modules/dropdown.less
Original file line number Diff line number Diff line change
Expand Up @@ -811,14 +811,14 @@ select.ui.dropdown {
}
}

.ui.clearable.dropdown .text,
.ui.clearable.dropdown a:last-of-type {
.ui.clearable.dropdown .text:not(.default),
.ui.clearable.dropdown:not(.search) > .ui.label:last-of-type {
margin-right: @clearableTextMargin;
}

.ui.dropdown select.noselection ~ .remove.icon,
.ui.dropdown input[value=""] ~ .remove.icon,
.ui.dropdown input:not([value]) ~ .remove.icon,
.ui.dropdown input:not([value]):not(.search) ~ .remove.icon,
.ui.dropdown.loading > .remove.icon {
display: none;
}
Expand Down
18 changes: 13 additions & 5 deletions src/definitions/modules/embed.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,12 @@

createPlaceholder: function (placeholder) {
var
icon = module.get.icon()
icon = module.get.icon(),
alt = module.get.alt()
;
placeholder = placeholder || module.get.placeholder();
$module.html(templates.placeholder(placeholder, icon));
module.debug('Creating placeholder for embed', placeholder, icon);
$module.html(templates.placeholder(placeholder, icon, alt));
module.debug('Creating placeholder for embed', placeholder, icon, alt);
},

createEmbed: function (url) {
Expand Down Expand Up @@ -203,6 +204,9 @@
placeholder: function () {
return settings.placeholder || $module.data(metadata.placeholder);
},
alt: function () {
return settings.alt || $module.data(metadata.alt);
},
icon: function () {
return settings.icon || ($module.data(metadata.icon) !== undefined
? $module.data(metadata.icon)
Expand Down Expand Up @@ -288,6 +292,7 @@
.removeData(metadata.id)
.removeData(metadata.icon)
.removeData(metadata.placeholder)
.removeData(metadata.alt)
.removeData(metadata.source)
.removeData(metadata.url)
;
Expand Down Expand Up @@ -557,6 +562,8 @@
source: false,
url: false,
id: false,
placeholder: false,
alt: false,

// standard video settings
autoplay: 'auto',
Expand All @@ -579,6 +586,7 @@
id: 'id',
icon: 'icon',
placeholder: 'placeholder',
alt: 'alt',
source: 'source',
url: 'url',
},
Expand Down Expand Up @@ -654,7 +662,7 @@
+ ' width="100%" height="100%"'
+ ' msallowFullScreen allowFullScreen></iframe>';
},
placeholder: function (image, icon) {
placeholder: function (image, icon, alt) {
var
html = '',
deQuote = $.fn.embed.settings.templates.deQuote
Expand All @@ -663,7 +671,7 @@
html += '<i class="' + deQuote(icon) + ' icon"></i>';
}
if (image) {
html += '<img class="placeholder" src="' + deQuote(image) + '">';
html += '<img class="placeholder" src="' + deQuote(image) + (alt ? '" alt="' + deQuote(alt) : '') + '">';
}

return html;
Expand Down

0 comments on commit ce75422

Please sign in to comment.