Skip to content

Feature request: default size #294

@Waterstraal

Description

@Waterstraal

Describe the problem you'd like to see solved or task you'd like to see made easier

Currently you can set a defaultPrefix and fixedWidth in FaConfig:

export class AppModule {
  constructor(faConfig: FaConfig) {
    faConfig.fixedWidth = true;
    faConfig.defaultPrefix = 'far';
  }
}

I would like to set a default size as well, so that I don't have to specify it for each individual icon.
I can also imagine that it would be nice to be able to set a default for each existing fa-icon property.

Is this in relation to an existing part of angular-fontawesome or something new?

Yes, FaConfig

What is 1 thing that we can do when building this feature that will guarantee that it is awesome?

Extend FaConfig with a defaultSize property, and possibly with all the other fa-icon properties as well.

Why would other angular-fontawesome users care about this?

It would make them more efficient & their codebase cleaner.

On a scale of 1 (sometime in the future) to 10 (absolutely right now), how soon would you recommend we make this feature?

10

Feature request checklist

  • This is a single feature (i.e. not a re-write of all of Font Awesome)
  • The title starts with "Feature request: " and is followed by a clear feature name (Ex: Feature request: moar cowbell)
  • I have searched for existing issues and to the best of my knowledge this is not a duplicate

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions